on master help sign in
Fix a few typos in comments
commit5ba45569e0ffabf1c2335177a5c656a19c330ba3 authorRudi Grinberg <rudi.grinberg@gmail.com> dateThu 14 May 2015, 12:14 (11 years ago) parent26cd704
2 files changed+3−3
warp/Network/Wai/Handler/Warp/Run.hs+2−2 warp/Network/Wai/Handler/Warp/Settings.hs+1−1
warp/Network/Wai/Handler/Warp/Run.hs+2−2
@@ -390,8 +390,8 @@ serveConnection conn ii origAddr transport settings app = do
390390 -- We just send a Response and it takes a time to
391391 -- receive a Request again. If we immediately call recv,
392392 -- it is likely to fail and the IO manager works.
393− -- It is very costy. So, we yield to another Haskell
394− -- thread hoping that the next Request will arraive
393+ -- It is very costly. So, we yield to another Haskell
394+ -- thread hoping that the next Request will arrive
395395 -- when this Haskell thread will be re-scheduled.
396396 -- This improves performance at least when
397397 -- the number of cores is small.
warp/Network/Wai/Handler/Warp/Settings.hs+1−1
@@ -45,7 +45,7 @@ data Settings = Settings
4545 , settingsOnClose :: SockAddr -> IO () -- ^ What to do when a connection is close. Default: do nothing.
4646 , settingsTimeout :: Int -- ^ Timeout value in seconds. Default value: 30
4747 , settingsManager :: Maybe Manager -- ^ Use an existing timeout manager instead of spawning a new one. If used, 'settingsTimeout' is ignored. Default is 'Nothing'
48− , settingsFdCacheDuration :: Int -- ^ Cache duratoin time of file descriptors in seconds. 0 means that the cache mechanism is not used. Default value: 0
48+ , settingsFdCacheDuration :: Int -- ^ Cache duration time of file descriptors in seconds. 0 means that the cache mechanism is not used. Default value: 0
4949 , settingsBeforeMainLoop :: IO ()
5050 -- ^ Code to run after the listening socket is ready but before entering
5151 -- the main event loop. Useful for signaling to tests that they can start