packages feed

warp 3.3.1 → 3.3.2

raw patch · 3 files changed

+11/−3 lines, 3 files

Files

ChangeLog.md view
@@ -1,3 +1,7 @@+## 3.3.2++* Fixing a bug of HTTP/2 without fd cache.+ ## 3.3.1  * Using gracefullClose of network 3.1.1 or later if available.
Network/Wai/Handler/Warp/HTTP2/File.hs view
@@ -15,8 +15,12 @@  pReadMaker :: InternalInfo -> PositionReadMaker pReadMaker ii path = do-    (Just fd, refresh) <- getFd ii path-    return (pread fd, Refresher refresh)+    (mfd, refresh) <- getFd ii path+    case mfd of+      Just fd -> return (pread fd, Refresher refresh)+      Nothing -> do+          fd <- openFile path+          return (pread fd, Closer $ closeFile fd)   where     pread :: Fd -> PositionRead     pread fd off bytes buf = fromIntegral <$> positionRead fd buf bytes' off'
warp.cabal view
@@ -1,5 +1,5 @@ Name:                warp-Version:             3.3.1+Version:             3.3.2 Synopsis:            A fast, light-weight web server for WAI applications. License:             MIT License-file:        LICENSE