News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

Increasing number of connections per http server

Started by ben2ong2, October 01, 2006, 07:10:51 AM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

ben2ong2

Folks, HTTP Protocol limits number of maximum connections to a HTTP server to 2. Following table explains restrictions placed by various HTTP PROTOCOLS. This is the as per the RFC specifications.

1.   HTTP 1.0 conforming server   4 simultaneous connections
2.   HTTP 1.1 conforming server   2 simputaneous connections

Limitation caused by this is visible whenever your applications make calls like HttpSendRequest and InternetOpenURL which take longer to complete as they wait for previous connections to be freed up before their requests are sent. You can configure WinInet to exceed this limit by creating and setting the registry entries. Open registry (by going to START-RUN and entering regedit) and navigate to [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings] and look for values of "MaxConnectionsPerServer" and "MaxConnectionsPer1_0Server ". If you don't see then add two key by the names "MaxConnectionsPerServer" and "MaxConnectionsPer1_0Server " respectively. Default values are as MaxConnectionsPerServer = 2MaxConnectionsPer1_0Server = 4
You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login