Microsoft KB Archive/321761

= Cannot Post Large Files over HTTP by Using Wininet.dll Through Proxy Server =

Article ID: 321761

Article Last Modified on 6/11/2002

-

APPLIES TO


 * Microsoft Proxy Server 2.0 Standard Edition

-



This article was previously published under Q321761



SYMPTOMS
When you use Wininet.dll in a client-side application, you may not be able to use an HTTP POST to post large files if no data is sent for several seconds on a connection between a computer that is running Proxy Server 2.0 and an upstream proxy server or a Web server.



CAUSE
Proxy Server 2.0 closes the connection after two minutes. If a data transfer is interrupted for more than two minutes (for example, because of network problems), Proxy Server stops waiting for more data.



RESOLUTION
IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

Change the relevant time-out value in the registry to a higher value than two minutes.  Open the Registry by using a tool such as Regedit.exe. Locate the SocketIOTimeoutSecs registry key. This key is located under the following registry key:

HKLM/System/CurrentControlSet/Services/W3Proxy

 Change the default value of 120 to a higher value (note that this value is measured in seconds). NOTE: The default value (120) is the number of seconds after which Proxy times out a connection if no data is sent. Do not use a value greater than 300 seconds, because Wininet.dll times out the connection on the client side after 300 seconds.

