HttpWebRequest request time out vs operation time out

  • Thread starter Thread starter Eric Cadwell
  • Start date Start date
E

Eric Cadwell

Are there two distinct timeouts on HttpWebRequest.GetResponse()? If I recall
correctly, I've seen an "operation timed out" that was not the same as
request time out.

Thanks,
Eric
 
Thus wrote Eric,
Are there two distinct timeouts on HttpWebRequest.GetResponse()? If I
recall correctly, I've seen an "operation timed out" that was not the
same as request time out.

Yes, there is HttpWebRequest.Timeout and HttpWebRequest.ReadWriteTimeout.
The former applies to completing GetResponse() and GetRequestStream(), the
latter to completing reads and writes on network streams obtained by GetRequestStream()
or GetResponseStream().

Cheers,
 
Back
Top