Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix memory leak in TLS closed connections (snoyberg/keter#13)

  • Loading branch information...
commit e701c41b80bb3242e7ff7bdb1cd145b938193e69 1 parent a445766
@snoyberg authored
View
4 network-conduit-tls/Data/Conduit/Network/TLS.hs
@@ -167,4 +167,6 @@ recvExact socket =
| rest == 0 = return $ S.concat $ front []
| otherwise = do
next <- recv socket rest
- loop (front . (next:)) $ rest - S.length next
+ if S.length next == 0
+ then return $ S.concat $ front []
+ else loop (front . (next:)) $ rest - S.length next
View
2  network-conduit-tls/network-conduit-tls.cabal
@@ -1,5 +1,5 @@
name: network-conduit-tls
-version: 1.0.0.1
+version: 1.0.0.2
synopsis: Create TLS-aware network code with conduits
description: Uses the tls package for a pure-Haskell implementation.
homepage: https://github.com/snoyberg/conduit
Please sign in to comment.
Something went wrong with that request. Please try again.