Re: WinInet - multi connections

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Most likely WinInet is not loaded yet when your client changes
the setting. BTW, note that this setting is system-wide and you
shouldn't be changing it in the first place...

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

<baronadav@xxxxxxxxx> wrote in message
news:1150899065.264001.255410@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Greetings,

I have a small question which you might be able to help me with.


My application is a DLL that uses many threads, each thread do
different task using HTTP GET / Post methods. (WinInet...)


By default, Windows limits the amount of connection per server to 2.
In order to change this number, and to allow all my threads to connect
to the server at the same time and not just 2 at a time, I must change
the registry key
(HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\MaxConnectionsPerServerto) to the number of connections I
want.
This is all done in my .dll file.


The problem that I have is that when I change that registry key from
within the .dll right before the the threads starts, even though it is
changed in the registry, it does not seem to effect the # of allowed
connections to the server and the threads takes for ever. However,
when I change this registry key from the client application and then
statrs the threds in the .dll it works just fine. I am not sure why
changing this key from within the dll does not effct the # of allowed
connections. (maybe the .dll loads the setting before that???). Any
way, off course I would like to have this done within the .dll so that
the clients would not have to do anything about this. Any ideas?


Thanks



.



Relevant Pages

  • Re: WinInet - multi connections
    ... wininet related posts better to ask on wininet NG. ... Settings\MaxConnectionsPerServerto) to the number of connections I ... This is all done in my .dll file. ... The problem that I have is that when I change that registry key from ...
    (microsoft.public.win32.programmer.networks)
  • WinInet - multi connections
    ... Windows limits the amount of connection per server to 2. ... Settings\MaxConnectionsPerServerto) to the number of connections I ... This is all done in my .dll file. ... The problem that I have is that when I change that registry key from ...
    (microsoft.public.win32.programmer.networks)
  • WinInet - multi connections
    ... Windows limits the amount of connection per server to 2. ... Settings\MaxConnectionsPerServerto) to the number of connections I ... This is all done in my .dll file. ... The problem that I have is that when I change that registry key from ...
    (microsoft.public.win32.programmer.networks)
  • Re: Disable remote desktop connection security warning
    ... Guess one could configure different connections and watch the ... MCSE, CCEA, Microsoft MVP - Terminal Server ... I'm deploying a TS solution and automatic client machines so ... it is stores in a registry key or another place that can be ...
    (microsoft.public.windows.terminal_services)
  • Re: screen scrape / remote manipulation
    ... Functionally a dll is no different from an .exe in terms of spying ... The other option is to install software capable of monitoring TCP/IP port ... connection is established between the dll (on the client) and the server, ...
    (microsoft.public.windowsxp.general)