Microsoft KB Archive/263754

= BUG: WinInet Application Stops Responding and Shows 100-Percent CPU Utilization =

Article ID: 263754

Article Last Modified on 10/2/2003

-

APPLIES TO


 * Microsoft Internet Explorer 4.0 128-Bit Edition
 * Microsoft Internet Explorer 4.01 Service Pack 2
 * Microsoft Internet Explorer 4.01 Service Pack 1
 * Microsoft Internet Explorer 4.01 Service Pack 2
 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 5.01

-



This article was previously published under Q263754



SYMPTOMS
Under some conditions, a WinInet application may stop responding and show 100-percent CPU utilization. When you debug the offending application, you may see that the InternetReadFile API is causing the blocking and CPU-utilization problem.

This only happens when the server uses chunked encoding and abruptly closes a connection.



CAUSE
The problem is caused by a bug in the InternetReadFile API. Under some conditions, InternetReadFile fails to detect a connection closure and still tries to read data from the socket.



RESOLUTION
Because this problem only occurs when chunked encoding is used, you can disable chunked encoding to solve the problem. Because chunked encoding is not used with HTTP 1.0, you can work around this problem by using HTTP 1.0. To do so you must:
 * 1) Specify HTTP/1.0 in the HttpOpenRequest API.
 * 2) In Internet Explorer, from the Tools menu, click Internet Options, and then select the Advanced tab. Clear the Use HTTP 1.1 and Use HTTP 1.1 through proxy connections check boxes.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

