[Mono-aspnet-list] HttpWebRequest Allocates Multiple Threads per Request

Sean Reque sean.reque at ni.com
Mon Jan 21 16:11:18 UTC 2013


I noticed today in a debugger session that  performing a simple POST 
request with HttpWebRequest  allocates three new threads. Examining the 
source code reveals that the synchronous methods GetRequestStream() and 
GetResponseStream() use the asynchronous versions of themselves underneath 
the hood. 
Allocating three threads per request is unacceptable for my application. 
Is there any way to work around this so that making synchronous requests 
does not allocate new threads?


Thanks,

  Sean Reque
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20130121/c0c9f44e/attachment.html>


More information about the Mono-aspnet-list mailing list