mirror of
https://github.com/typeable/wai.git
synced 2024-12-29 09:04:33 +03:00
Fix a few typos in comments
This commit is contained in:
parent
26cd704fa5
commit
5ba45569e0
@ -390,8 +390,8 @@ serveConnection conn ii origAddr transport settings app = do
|
||||
-- We just send a Response and it takes a time to
|
||||
-- receive a Request again. If we immediately call recv,
|
||||
-- it is likely to fail and the IO manager works.
|
||||
-- It is very costy. So, we yield to another Haskell
|
||||
-- thread hoping that the next Request will arraive
|
||||
-- It is very costly. So, we yield to another Haskell
|
||||
-- thread hoping that the next Request will arrive
|
||||
-- when this Haskell thread will be re-scheduled.
|
||||
-- This improves performance at least when
|
||||
-- the number of cores is small.
|
||||
|
@ -45,7 +45,7 @@ data Settings = Settings
|
||||
, 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: 0
|
||||
, settingsFdCacheDuration :: Int -- ^ Cache duration 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
|
||||
|
Loading…
Reference in New Issue
Block a user