packages feed

warp 3.2.8 → 3.2.9

raw patch · 4 files changed

+9/−3 lines, 4 files

Files

ChangeLog.md view
@@ -1,3 +1,7 @@+## 3.2.9++* Fixing a space leak. [#586] https://github.com/yesodweb/wai/pull/586+ ## 3.2.8  * Fixing HTTP2 requestBodyLength. [#573](https://github.com/yesodweb/wai/pull/573)
Network/Wai/Handler/Warp.hs view
@@ -364,7 +364,7 @@ setProxyProtocolOptional :: Settings -> Settings setProxyProtocolOptional y = y { settingsProxyProtocol = ProxyProtocolOptional } --- | Size in bytes read to prevent Slowloris protection. Default value: 2048+-- | Size in bytes read to prevent Slowloris attacks. Default value: 2048 -- -- Since 3.1.2 setSlowlorisSize :: Int -> Settings -> Settings
Network/Wai/Handler/Warp/Response.hs view
@@ -3,6 +3,7 @@ {-# LANGUAGE TupleSections #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE CPP #-}+{-# LANGUAGE BangPatterns #-}  module Network.Wai.Handler.Warp.Response (     sendResponse@@ -176,7 +177,8 @@           | isHead                  -> RspNoBody           | otherwise               -> RspStream fb needsChunked th         ResponseRaw raw _           -> RspRaw raw src (T.tickle th)-    ret = case response of+    -- Make sure we don't hang on to 'response' (avoid space leak)+    !ret = case response of         ResponseFile    {} -> isPersist         ResponseBuilder {} -> isKeepAlive         ResponseStream  {} -> isKeepAlive
warp.cabal view
@@ -1,5 +1,5 @@ Name:                warp-Version:             3.2.8+Version:             3.2.9 Synopsis:            A fast, light-weight web server for WAI applications. License:             MIT License-file:        LICENSE