[Mono-list] WebRequest not reusing underlying connection

Chris Ochs chris at ochsnet.com
Tue Oct 22 04:35:44 UTC 2013


This is mono 3 from master on ubuntu.

I'm making http requests with embedded mono and it's creating a new
connection for each request, eventually running out of file descriptors
from all the connections still in TIME_WAIT.  Client is sending Connection:
keep-alive and server is not closing the connection.  I have verified that
with ngrep.

The code is straight from the MSDN example at
http://msdn.microsoft.com/en-us/library/debx8sh9.aspx.

Is there something special I have to do, or is this just broken in mono on
linux?

Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20131021/614feae1/attachment.html>


More information about the Mono-list mailing list