on master help sign in
more doc.
commitaece7451d692a6458a8278634e13f4caaa3d4100 authorKazu Yamamoto <kazu@iij.ad.jp> dateMon 18 Aug 2014, 09:01 (12 years ago) parent2c1d2c8
1 file changed+3
warp/Network/Wai/Handler/Warp/Run.hs+3
warp/Network/Wai/Handler/Warp/Run.hs+3
@@ -84,6 +84,9 @@ runSettings set app = withSocketsDo $
8484--
8585-- Note that the 'settingsPort' will still be passed to 'Application's via the
8686-- 'serverPort' record.
87+--
88+-- When the listen socket in the second argument is closed, all live
89+-- connections are gracefully shut-downed.
8790runSettingsSocket :: Settings -> Socket -> Application -> IO ()
8891runSettingsSocket set socket app = do
8992 settingsInstallShutdownHandler set closeListenSocket