Cannot Post Large Files over HTTP by Using Wininet.dll Through Proxy Server (321761)



The information in this article applies to:

  • Microsoft Proxy Server 2.0

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.
  1. Open the Registry by using a tool such as Regedit.exe.
  2. Locate the SocketIOTimeoutSecs registry key. This key is located under the following registry key:

    HKLM/System/CurrentControlSet/Services/W3Proxy

  3. 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.

REFERENCES

For additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base:

192718 FIX: RDS Query Times Out After Five Minutes

279745 Internet Explorer Hangs for Five Minutes Accessing Dynamic Content in Frames


Modification Type:MajorLast Reviewed:6/11/2002
Keywords:kbprb KB321761