[Haskell-cafe] http: Network.Browser leaks TCP connections
Daniel McAllansmith
dm.maillists at gmail.com
Thu Apr 10 23:18:51 EDT 2008
I've looked into this further and I believe the leaked connections are due to
Network.Browser, this is a separate issue from that identified by Paul Brown.
The BrowserState in Network.Browser has a connection pool of up to five
connections. When a sixth is opened the oldest connection is closed. This
looks to be the only time that a connection is closed.
BrowserState's internals are not exported so there is no way for a user to
close them.
The net effect for HXT is that every time readDocument is called, using native
http, a single TCP connection is leaked.
I've attached a patch against the darcs version of http that cures my test
programs leak.
Cheers
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BrowserState_connection_leak.patch
Type: text/x-diff
Size: 4162 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20080411/6c839dcc/BrowserState_connection_leak.bin
More information about the Haskell-Cafe
mailing list