posts - 374, comments - 606, trackbacks - 112,
Dan Bartels online engineering logbook... Items that I find useful organized for my use, and indexed by google for yours. Here you can find information about Microsoft C# programming, SQL SERVER 2005, Telligent Systems CommunityServer, Dot Net Nuke, Windows Vista / Longhorn, and just about anything else that would compel me to type.

News

What I am Reading:


Professional Community Server

Past books can be viewed on:

Post Categories

Archives

Coding Techniques

Coding Tools

Community Sites

Deal Finders

Friends Businesses

Microsofties

Smartphones

Utilities

my blogmap
Tweaking IE - 10 Connections per Server

IE conforms to the HTTP 1.1 spec, which requires that clients cant have more than two active connections to a site at any one time..  This means that your third request (say you are downloading two files, and click to browse for a third) will be "on-hold" until one of your two existing connections close.

Wininet.dll limits connections to a single HTTP 1.0 server to four simultaneous connections. Connections to a single HTTP 1.1 server are limited to two simultaneous connections. The HTTP 1.1 specification (RFC 2068) mandates the two-connection limit. The four-connection limit for HTTP 1.0 servers is a self-imposed restriction that coincides with the standard that is used by several popular Web browsers.

In Internet Explorer 5 and later, you can change the connection limit programmatically by calling the InternetSetOption function on a null handle with the following flags (note that this changes the connection limit for the whole process):

INTERNET_OPTION_MAX_CONNS_PER_SERVER
INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER

However, if a process has established a connection to a server, and you then change the connection limit by calling InternetSetOption, the change does not have any effect on additional connections on the same server. This behavior occurs even if you disconnect the previous connection before you call InternetSetOption.

I have been using a simple registry hack since my Windows 2000 days, when I first came across this limitation (not sure if it existed in windows 9x, I think I probably never ran into the 4 connection limit)...

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings]
"MaxConnectionsPerServer"=dword:0000000a

Above is the contents of the attached registry file, it will when run, set the max connections per server to 10 :)

No restart is required, this works on all windows versions (including Vista)

Dan

Published Tuesday, September 19, 2006 3:23 PM by DanB

Filed under , , , ,

Attachment(s): 10_connections_per_server.reg
::

Comments

# re: Tweaking IE - 10 Connections per Server @ Tuesday, September 19, 2006 4:58 PM

That regkey is awesome I always wonered why multiple downloads acted that way. I figured it was a bandwidth issue. Thanks!

Patrick

# re: Tweaking IE - 10 Connections per Server @ Tuesday, September 19, 2006 11:37 PM

Yeah I love that hack! An oldie but a goodie. In Firefox, you can increase the maximum number of simultaneous downloads. Just type about:config in the URL-bar and change the setting for network.http.max-persistent-connections-per-server. E.g. make it 10.

jayson knight

# re: Tweaking IE - 10 Connections per Server @ Tuesday, September 26, 2006 3:09 PM

Great stuff! I remember using this back in the Windows 95 days and just forgot all about it. Thanks for the reminder!

Steve

# re: Tweaking IE - 10 Connections per Server @ Friday, October 20, 2006 11:41 PM

I had just seen an interview with the IE development team, and the lead on the networking side of the team suggests that people with broadband set the connections to 16 (some sort of magic number).  So a tweak to what you had would be:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings]

"MaxConnectionsPerServer"=dword:00000010

This of course is important for downloads, but most importantly it will allow each iexplore.exe process to use up to 16 connections when rendering a page. (depending on the amount of resources)

Ed Rochenski

# re: Tweaking IE - 10 Connections per Server @ Sunday, December 24, 2006 11:52 PM

lol want to know step by step about ,

How I set simulate download :( for IE

   ( - my IE default is 2 )  

please, step by step

very Thanks :P

cocoz

# re: Tweaking IE - 10 Connections per Server @ Saturday, January 27, 2007 12:08 PM

reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings /v MaxConnectionsPerServer /t REG_WORD /d 0000000a

is this a correct script or the right way to add this to through the command prompt

??

Any help would be appreciated

jose

# re: Tweaking IE - 10 Connections per Server @ Friday, March 30, 2007 10:53 AM

This doesn't work under Vista x64.  

chris lively

# re: Tweaking IE - 10 Connections per Server @ Sunday, July 22, 2007 6:44 PM

Here is where I found my registry setting for 64-bit Windows XP (may be the same for Vista 64-bit, but not sure:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings]

"MaxConnectionsPer1_0Server"=dword:00000004

"MaxConnectionsPerServer"=dword:00000010

Dave

# re: Tweaking IE - 10 Connections per Server @ Wednesday, November 07, 2007 1:21 PM

Dan,

Do you know if its documented anywhere if this also applies to the client's proxy server?  Meaning, does tweaking this value also allow more concurrent browser --> proxy server requests?

Rich Viana

Leave a Comment

(required) 
(required) 
(optional)
(required) 
 
Powered by Community Server (Commercial Edition), by Telligent Systems
powered by god (with a little help from Telligent Systems - Community Server 2.1)