on master help sign in
using a variable for readability.
commit433648c1681b62e550b40cc448755f678f4a2640 authorKazu Yamamoto <kazu@iij.ad.jp> dateThu 14 Aug 2014, 16:31 (12 years ago) parent680c72b
1 file changed+2−1
warp/Network/Wai/Handler/Warp/Run.hs+2−1
warp/Network/Wai/Handler/Warp/Run.hs+2−1
@@ -140,10 +140,11 @@ runSettingsConnectionMakerSecure set getConnMaker app = do
140140 -- that no async exception is throw between the call to getConnLoop and the
141141 -- registering of connClose.
142142 D.withDateCache $ \dc ->
143− F.withFdCache (settingsFdCacheDuration set * 1000000) $ \fc ->
143+ F.withFdCache fdCacheDurationInSeconds $ \fc ->
144144 withTimeoutManager $ \tm ->
145145 mask_ $ acceptConnection set getConnMaker app dc fc tm
146146 where
147+ fdCacheDurationInSeconds = settingsFdCacheDuration set * 1000000
147148 withTimeoutManager f =
148149 case settingsManager set of
149150 Nothing -> bracket