> Hi Joerg,
>
> Thanks for the response. Im wondering if indeed my problem is
> ServicePoint related. Do you know of any good resources where I can
> go and learn about this? In my scenario each active thread makes one
> Http Request and gets the response.
Mark, ServicePoints are unfortunately one of the more arcane classes in
the BCL. I'm not even aware of any MSDN article discussing them.
You'll find some information in "Network Programming for the .NET
Framework" (MS Press), but other than that the class documentation is
your best friend.
Note: The connection limit imposed by ServicePoint(Manager) has a
reason -- it is specified in RFC 2616 (HTTP 1.1).
> Ive looked into my problem further and I do find that I have
> occasional problems, when reading the response stream. I find that
[quoted text clipped - 8 lines]
> its like the thread is in the process of reading bytes part of the
> way through and then hangs.
Note that the Timeout property is only relevant for pending responses,
not responses that are already being received. Faulty HTTP
implementations can cause a lot of problems here (e.g. wrong
Content-Length, or broken chunking).
If you need a timeout for "in-flight" responses, use async I/O with
ThreadPool.WaitForSingleObject() to register a timeout for the async
operation.
Cheers,

Signature
http://www.joergjooss.de
mailto:news-reply@joergjooss.de
shriop - 22 Aug 2005 04:32 GMT
My guess is that you're making a request to an HTTPS url. There's a
default limit of 2 simultaneous https requests to the same domain built
into the framework. Just put this line of code into your code after
you've created the HttpWebRequest object,
request.ServicePoint.ConnectionLimit = 50;
Bruce Dunwiddie
http://www.csvreader.com
> > Hi Joerg,
> >
[quoted text clipped - 36 lines]
>
> Cheers,
Joerg Jooss - 22 Aug 2005 20:01 GMT
> My guess is that you're making a request to an HTTPS url. There's a
> default limit of 2 simultaneous https requests to the same domain
> built into the framework. Just put this line of code into your code
> after you've created the HttpWebRequest object,
>
> request.ServicePoint.ConnectionLimit = 50;
Ouch... http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec8.1.4
Cheers,

Signature
http://www.joergjooss.de
mailto:news-reply@joergjooss.de