packages feed

warp 3.0.12.1 → 3.0.13

raw patch · 4 files changed

+18/−4 lines, 4 files

Files

ChangeLog.md view
@@ -1,3 +1,7 @@+## 3.0.13++* Turn off file descriptor cache by default [#371](https://github.com/yesodweb/wai/issues/371)+ ## 3.0.12.1  * Fix for: HEAD requests returning non-empty entity body [#369](https://github.com/yesodweb/wai/issues/369)
Network/Wai/Handler/Warp.hs view
@@ -184,7 +184,17 @@ setManager :: Manager -> Settings -> Settings setManager x y = y { settingsManager = Just x } --- | Cache duration time of file descriptors in seconds. 0 means that the cache mechanism is not used. Default value: 10+-- | Cache duration time of file descriptors in seconds. 0 means that the cache mechanism is not used.+--+-- The FD cache is an optimization that is useful for servers dealing with+-- static files. However, if files are being modified, it can cause incorrect+-- results in some cases. Therefore, we disable it by default. If you know that+-- your files will be static or you prefer performance to file consistency,+-- it's recommended to turn this on; a reasonable value for those cases is 10.+-- Enabling this cache results in drastic performance improvement for file+-- transfers.+--+-- Default value: since 3.0.13, default value is 0, was previously 10 setFdCacheDuration :: Int -> Settings -> Settings setFdCacheDuration x y = y { settingsFdCacheDuration = x } 
Network/Wai/Handler/Warp/Settings.hs view
@@ -45,7 +45,7 @@     , settingsOnClose :: SockAddr -> IO ()  -- ^ What to do when a connection is close. Default: do nothing.     , settingsTimeout :: Int -- ^ Timeout value in seconds. Default value: 30     , settingsManager :: Maybe Manager -- ^ Use an existing timeout manager instead of spawning a new one. If used, 'settingsTimeout' is ignored. Default is 'Nothing'-    , settingsFdCacheDuration :: Int -- ^ Cache duratoin time of file descriptors in seconds. 0 means that the cache mechanism is not used. Default value: 10+    , settingsFdCacheDuration :: Int -- ^ Cache duratoin time of file descriptors in seconds. 0 means that the cache mechanism is not used. Default value: 0     , settingsBeforeMainLoop :: IO ()       -- ^ Code to run after the listening socket is ready but before entering       -- the main event loop. Useful for signaling to tests that they can start@@ -108,7 +108,7 @@     , settingsOnClose = const $ return ()     , settingsTimeout = 30     , settingsManager = Nothing-    , settingsFdCacheDuration = 10+    , settingsFdCacheDuration = 0     , settingsBeforeMainLoop = return ()     , settingsFork = void . forkIOWithUnmask     , settingsNoParsePath = False
warp.cabal view
@@ -1,5 +1,5 @@ Name:                warp-Version:             3.0.12.1+Version:             3.0.13 Synopsis:            A fast, light-weight web server for WAI applications. License:             MIT License-file:        LICENSE