[Mono-dev] Nagle and NoDelay for HttpWebRequest

Gonzalo Paniagua Javier gonzalo.mono at gmail.com
Fri Apr 10 01:06:54 EDT 2009

A couple of months ago, due to performance issues under certain
circumstances (lots of small packets and TLS involved), we started
setting the NoDelay option on all the sockets created for
HttpWebRequest. That code was released as part of 2.4.

In the next release or if you're building from svn sources, the proper
way of avoiding the performance problem is to set this configuration
option for your application/library:
	<servicePointManager useNagleAlgorithm="false" />

You can also set it programatically using the ServicePointManager or the
ServicePoint classes.

The Nagle algorithm will be used by default.


More information about the Mono-devel-list mailing list