@@ -89,7 +89,7 @@ runSettings set app = withSocketsDo $
89-- 'serverPort' record.
89-- 'serverPort' record.
91-- When the listen socket in the second argument is closed, all live
91-- When the listen socket in the second argument is closed, all live
92−-- connections are gracefully shut-downed.
92+-- connections are gracefully shut down.
93runSettingsSocket :: Settings -> Socket -> Application -> IO ()
93runSettingsSocket :: Settings -> Socket -> Application -> IO ()
94runSettingsSocket set socket app = do
94runSettingsSocket set socket app = do
95 settingsInstallShutdownHandler set closeListenSocket
95 settingsInstallShutdownHandler set closeListenSocket
@@ -259,7 +259,7 @@ fork set mkConn addr app dc fc tm counter = settingsFork set $ \ unmask ->
259 bracket (onOpen addr) (onClose addr) $ \goingon ->
259 bracket (onOpen addr) (onClose addr) $ \goingon ->
261 -- Actually serve this connection.
261 -- Actually serve this connection.
262− -- onnClose above ensures the termination of the connection.
262+ -- bracket with closeConn above ensures the connection is closed.
263 when goingon $ serveConnection conn ii addr isSecure' set app
263 when goingon $ serveConnection conn ii addr isSecure' set app
265 closeConn (conn, _isSecure) = connClose conn
265 closeConn (conn, _isSecure) = connClose conn