471,594 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,594 software developers and data experts.

What does HttpWebResponse.Close() do?

I found one issue about HttpWebResponse.
I tried to get a huge webpage (i.e. http://wx.msn.com) with
HttpWebRequest timeout set; reading the response stream is still
controlled by timeout. However, the HttpWebResponse.Close takes ages.
I suppose HttpWebResponse want to do a clean resouce clean-up. So, if
the website doen't finish sending chuckes of HTTP packets, the client
would not return from Close().

Is there anybody clear about the inside of
HttpWebRequest/HttpWebResponse?

Dec 12 '06 #1
1 4288
Hi Morgan,
download a copy of reflector http://www.aisto.com/roeder/dotnet/ and you
can see for yourself what goes on inside those methods, it is a very useful
tool.

Mark.
--
http://www.markdawson.org
"Morgan Cheng" wrote:
I found one issue about HttpWebResponse.
I tried to get a huge webpage (i.e. http://wx.msn.com) with
HttpWebRequest timeout set; reading the response stream is still
controlled by timeout. However, the HttpWebResponse.Close takes ages.
I suppose HttpWebResponse want to do a clean resouce clean-up. So, if
the website doen't finish sending chuckes of HTTP packets, the client
would not return from Close().

Is there anybody clear about the inside of
HttpWebRequest/HttpWebResponse?

Dec 12 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by hlabbott | last post: by
1 post views Thread by Brent | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.