[Mono-aspnet-list] HttpWebRequest Allocates Multiple Threads per Request
Sean Reque
sean.reque at ni.com
Thu Jan 17 20:53:12 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/20130117/2868868d/attachment.html>
More information about the Mono-aspnet-list
mailing list