.Net HTTP implementation bug?

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

Morgan Cheng

If a web server HTTP response is in chunked encoding, CLR client
invocation on HttpWebResponse.Close will not return until the whole
page is downloaded. If the page is huge, it looks the thread is stuck
in HttpWebResponse.Close. An example URL is http://wx.msn.com.

This might be a bug for CLR. I tried both 1.1 and 2.0.
With the help of network sniffer, I found that CLR doesn't have RESET
flag on invocation of HttpWebResponse.Close if the server http
response is in Chunked encoding (i.e. there is "TRANSFER-ENCODING:
chunked" in http header)
 
Back
Top