To make sure that the
HttpWebRequest class and the
HttpClient class will reuse a connection, you must drain the entire HTTP request responses from the connection before a new request can be made. To deal with this issue, apply one of the following methods:
- Make sure that you completely drain the response stream before you send a new request. For example, when you receive a chunked response, the application reads the response stream until the read method on the stream returns "0 bytes read."
Note This approach requires no additional update to be installed. - Install this update to restore the same behavior prior to the installation of the hotfix in KB 2750149. When the application closes the response stream, the HttpWebRequest class tries to drain the responses. If this operation is successful, the connection will be reused for the next request.
Hotfix Information
A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.
To resolve this problem, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft website:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.Prerequisites
To apply this hotfix, you must have Microsoft .NET Framework 4.5 installed.
Restart requirement
You must restart the computer after you apply this hotfix if affected files are being used during the installation. We recommend that you close all applications that use .NET Framework before you apply this hotfix.
File information
The global version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.For all supported x86-based versions of Windows 7 SP1, Windows Server 2008 SP2 and Windows Vista SP2File name | File version | File size | Date | Time | Platform |
---|
System.dll | 4.0.30319.19081 | 3,450,440 | 07-May-2013 | 01:45 | x86 |
For all supported x64-based versions of Windows 7 SP1, Windows Server 2008 R2 SP1, Windows Server 2008 SP2 and Windows Vista SP2File name | File version | File size | Date | Time | Platform |
---|
System.dll | 4.0.30319.19081 | 3,450,440 | 07-May-2013 | 01:45 | x86 |