This article describes how to change the default HTTP retention connection values in MicrosoftInternet Explorer.
When Internet Explorer establishes a permanent HTTP connection to the Web server (by using the connection:keep-alive header), Internet Explorer reuses the same TCP/IP socket used to receive the initial request until The socket's idle time reaches one minute. After the connection is idle for one minute, Internet Explorer resets the connection. Then, a new TCP/IP socket is used to receive additional requests. You may want to change the Httpkeepalivetimeout value in Internet Explorer.
Whether the client browser (InternetExplorer) or the WEB server has a lower KeepAlive value, it will be a limiting factor. For example, if the timeout value for the client is two minutes and the Web server timeout is one minute, the maximum timeout is one minute. Either the client or the server can be a limiting factor.
By default, the InternetExplorer
KeepAliveTimeout
Value is one minute and has an additional constraint value of two minutes (
Serverinfotimeout
)。 Any of these settings can cause Internet Explorer to reset sockets
Warning: Improper use of Registry Editor can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems caused by improper use of the registry can be resolved. Using Registry Editor requires your own risk.
If the WEB program you are using must communicate with Internet Explorer through the same set of connectors one minute after the TCP/IP socket is idle, you may have to increase the default timeout value for persistent HTTP connections in Internet Explorer. To change the default timeout value for persistent HTTP connections in Internet Explorer, set a
KeepAliveTimeout
DWORD value to the following registry key, and then set its numeric data to the time (in milliseconds) that you want Internet Explorer to wait before resetting the idle connection:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\InternetSettings
To do this, follow these steps:
Click Start, click Run, type regedit, and then click OK.
Locate and click the following key in the registry:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\InternetSettings
On the Edit menu, point to New, and then click DWORD Value.
Type KeepAliveTimeout, and then press the Enter key.
On the Edit menu, click Modify.
Type the appropriate time-out value in milliseconds, and then click OK. For example, to set the timeout value to two minutes, type 120000.
Restart the InternetExplorer.
If you will
KeepAliveTimeout
Value is set to a value less than 60,000 (one minute), you may experience problems communicating with a WEB server that requires a permanent HTTP connection. For example, you may receive an error message "Page Cannot bedisplayed" (pages cannot be displayed).
If you have to make
KeepAliveTimeout
Value is greater than 120000 (two minutes), you must create an additional registry key and set the value of the registry key to the desired
KeepAliveTimeout
Value. The additional registry key is
Serverinfotimeout
。 It has a DWORD value (in milliseconds), and the
KeepAliveTimeout
In the same location.
For example, to use a size of three minutes
KeepAliveTimeout
Value, you must create the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\InternetSettings
KeepAliveTimeout DWORD Value 180000 (in milliseconds)
Serverinfotimeout DWORD Value 180000 (in milliseconds)
By default, HTTP 1.1 is enabled in InternetExplorer unless you establish an HTTP connection through a proxy server. When HTTP 1.1 is enabled, the HTTP connection remains open by default (that is, a permanent connection) until the connection is idle for one minute or to the registry
KeepAliveTimeout
Value to the specified value. You can use the Advanced tab in the Internet Options dialog box to modify the HTTP 1.1 settings in Internet Explorer.