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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top