<?xml version="1.0" encoding="UTF-8"?><item><title>WebRequest Connection Limit</title><description>&lt;p&gt;This took me a while to track down - I was having a problem where I could have two WebRequets objects open and reading data, but when I'd try to open the third one, it would just time out.&lt;/p&gt;&#13;
&lt;p&gt;Searching Usenet I found quite a few people with the same problem, but no solutions.  After digging for a little while I found out what was going on.&lt;/p&gt;&#13;
&lt;p&gt;The short answer is this:&lt;/p&gt;&#13;
&lt;blockquote dir="ltr" style="MARGIN-RIGHT: 0px"&gt;&#13;
&lt;p&gt;ServicePointManager.DefaultConnectionLimit = 10;&lt;/p&gt;&lt;/blockquote&gt;&#13;
&lt;p dir="ltr"&gt;Put that at the start of your app and make the number big enough to handle the number of connections you'll need.  The default value of 2 seems somewhat restrictive - this number controls the size of the thread pool that processes web requests (among other things). &lt;/p&gt;&#13;
&lt;p dir="ltr"&gt; &lt;/p&gt;</description><pubDate>Thu, 01 Sep 2005 19:17:04 GMT</pubDate></item>