欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

IE8 HTTP连接数目的变化

程序员文章站 2022-03-15 08:14:32
IE8 HTTP连接数目的变化...

国际标准rfc 2616(http://www.w3.org/protocols/rfc2616/rfc2616.html)规定,客户端向服务器发起的并发http连接数目应该有个上限。 如果是http1.1连接, 最多不应该超过2个并发连接。

 

“clients that use persistent connections should limit the number of simultaneous connections that they maintain to a given server. a single-user client should not maintain more than 2 connections with any server or proxy.”

 

在ie7以及更早版本的ie中,ie严格遵守该限制, http 1.0并发连接上限为4, http 1.1的并发连接上限为2。 同时,ie用户自定义连接上限数目(通过修改注册表), 网上已经有不少技术文章介绍用该方法来加速ie浏览。

 

连接上限的注册表设置为:

[hkey_currrent_user\software\microsoft\windows\currentversion\internet settings]

 

dword:maxconnectionsperserver  (http 1.1的连接上限)

dword:maxconnectionsper1_0server  (http 1.0的连接上限)

 

 

但是rfc 2616 已经有十年没有更新,而近些年服务器硬件飞速发展,该连接数目限制显得过时了。 于是各个浏览器产商都开始调整该数字。 ie8 里面也做了更新。 ie8中,  http 1.0并发连接上限为6, http 1.1的并发连接上限为6但是如果用户是拨号上网的话,ie8仍然会使用旧的连接限制。

 

另外,注册表设置也有所变动,ie8中连接上限设置改在:

 

(http 1.1的连接上限)

[hkey_local_machine\software\microsoft\internet explorer\main\featurecontrol\feature_maxconnectionsperserver]

dword: iexplore.exe

 

(http 1.0的连接上限)

[hkey_local_machine\software\microsoft\internet explorer\main\featurecontrol\feature_maxconnectionsper1_0server]

 

dword: iexplore.exe

相关标签: IE8 HTTP连接数