在 Internet Explorer 中更改每个代理的最大并行连接数
Change Max Parrallel connections Per Proxy in Internet Explorer
Internet Explorer 是否有办法在通过代理服务器连接时配置 MaxConnectionsPerServer 设置(默认值似乎是 2)?
在 Firefox 中有一个设置 network.http.max-persistent-connections-per-
proxy(当前默认为 4)。
IE 有多种方式来配置连接,但它们似乎并没有覆盖 PROXY 配置
- 每个服务器的最大连接数 (HTTP 1.0)
- MaxConnectionsPerServer(HTTP 1.1 - "per host")
使用一些测试站点,我们可以看到这些数字随着浏览器的不同而变化 on/off 代理(参见 browserscope.org and their network test):
IE11(默认设置)关闭代理
- 每个主机名的连接数 = 13
IE11 通过代理
- 每个主机名的连接数 = 2
这些默认值是有道理的,但它们似乎多年来一直在增加(代理端除外)...请参阅 "Effect of Proxies"
Note that if you’re behind a proxy (at work, etc.) your download
characteristics change. If web clients behind a proxy issued too many
simulataneous requests an intelligent web server might interpret that
as a DoS attack and block that IP address. Browser developers are
aware of this issue and throttle back the number of open connections.
In Firefox the network.http.max-persistent-connections-per-proxy
setting has a default value of 4. If you try the Max Connections test
page while behind a proxy it loads painfully slowly opening no more
than 4 connections at a time to download 180 images. IE8 drops back to
2 connections per server when it’s behind a proxy, so loading the Max
Connections test page shows an upperbound of 60 open connections. Keep
this in mind if you’re comparing notes with others – if you’re at home
and they’re at work you might be seeing different behavior because of
a proxy in the middle.
特别是我正在调查这个问题,因为当 WebSockets 关闭时,IE 会处理连接...频繁的 open/close 事件似乎在 IE 中排队得更快,IE 配置中的代理最大连接数似乎与其他浏览器相比是罪魁祸首。
经过几个小时的测试和搜索终于找到了一个相对隐藏和未记录的博客 post 从 IE 使用的底层 WinINet API 突出显示此配置对于 HTTP 通信:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings - MaxConnectionsPerProxy !
从 2009 年开始(大约 IE8):
While you could always change the number of connections WinInet (and
Internet Explorer) used by default, in the past, you could not also
control the number of Proxy Connections separately (also covered in
RFC 2616). There is now a setting that will allow you to set the
proxy connection limit independent from the number of persistent
connections to a server.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet 设置
值名称:MaxConnectionsPerProxy
数值数据:2
基数:十进制
一旦更改此值,我们已经看到 IE 在 a test site 上有不同的行为!
Internet Explorer 是否有办法在通过代理服务器连接时配置 MaxConnectionsPerServer 设置(默认值似乎是 2)?
在 Firefox 中有一个设置 network.http.max-persistent-connections-per- proxy(当前默认为 4)。
IE 有多种方式来配置连接,但它们似乎并没有覆盖 PROXY 配置
- 每个服务器的最大连接数 (HTTP 1.0)
- MaxConnectionsPerServer(HTTP 1.1 - "per host")
使用一些测试站点,我们可以看到这些数字随着浏览器的不同而变化 on/off 代理(参见 browserscope.org and their network test):
IE11(默认设置)关闭代理
- 每个主机名的连接数 = 13
IE11 通过代理
- 每个主机名的连接数 = 2
这些默认值是有道理的,但它们似乎多年来一直在增加(代理端除外)...请参阅 "Effect of Proxies"
Note that if you’re behind a proxy (at work, etc.) your download characteristics change. If web clients behind a proxy issued too many simulataneous requests an intelligent web server might interpret that as a DoS attack and block that IP address. Browser developers are aware of this issue and throttle back the number of open connections.
In Firefox the network.http.max-persistent-connections-per-proxy setting has a default value of 4. If you try the Max Connections test page while behind a proxy it loads painfully slowly opening no more than 4 connections at a time to download 180 images. IE8 drops back to 2 connections per server when it’s behind a proxy, so loading the Max Connections test page shows an upperbound of 60 open connections. Keep this in mind if you’re comparing notes with others – if you’re at home and they’re at work you might be seeing different behavior because of a proxy in the middle.
特别是我正在调查这个问题,因为当 WebSockets 关闭时,IE 会处理连接...频繁的 open/close 事件似乎在 IE 中排队得更快,IE 配置中的代理最大连接数似乎与其他浏览器相比是罪魁祸首。
经过几个小时的测试和搜索终于找到了一个相对隐藏和未记录的博客 post 从 IE 使用的底层 WinINet API 突出显示此配置对于 HTTP 通信:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings - MaxConnectionsPerProxy !
从 2009 年开始(大约 IE8):
While you could always change the number of connections WinInet (and Internet Explorer) used by default, in the past, you could not also control the number of Proxy Connections separately (also covered in RFC 2616). There is now a setting that will allow you to set the proxy connection limit independent from the number of persistent connections to a server.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet 设置
值名称:MaxConnectionsPerProxy
数值数据:2
基数:十进制
一旦更改此值,我们已经看到 IE 在 a test site 上有不同的行为!