What does HttpWebResponse.Close() do?

  • Thread starter Thread starter Morgan Cheng
  • Start date Start date
M

Morgan Cheng

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?
 

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