http-client 0.4.31 → 0.4.31.1
raw patch · 3 files changed
+13/−7 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- ChangeLog.md +5/−0
- Network/HTTP/Client/Connection.hs +7/−6
- http-client.cabal +1/−1
ChangeLog.md view
@@ -1,3 +1,8 @@+## 0.4.31.1++* The closeConnection method for tls connections should not be called multiple+ times [#225](https://github.com/snoyberg/http-client/issues/225)+ ## 0.4.31 * Added length validation for RequestBodyStream [#205](https://github.com/snoyberg/http-client/pull/205)
Network/HTTP/Client/Connection.hs view
@@ -90,7 +90,12 @@ -- already closed connection. closedVar <- newIORef False - _ <- mkWeakIORef istack c+ let close = do+ closed <- atomicModifyIORef closedVar (\closed -> (True, closed))+ unless closed $+ c++ _ <- mkWeakIORef istack close return $! Connection { connectionRead = do closed <- readIORef closedVar@@ -113,11 +118,7 @@ throwIO ConnectionClosed w x - , connectionClose = do- closed <- readIORef closedVar- unless closed $- c- writeIORef closedVar True+ , connectionClose = close } socketConnection :: Socket -> Int -> IO Connection
http-client.cabal view
@@ -1,5 +1,5 @@ name: http-client-version: 0.4.31+version: 0.4.31.1 synopsis: An HTTP client engine, intended as a base layer for more user-friendly packages. description: Hackage documentation generation is not reliable. For up to date documentation, please see: <http://www.stackage.org/package/http-client>. homepage: https://github.com/snoyberg/http-client