Re: WinInet - multi connections
- From: "Alexander Nickolov" <agnickolov@xxxxxxxx>
- Date: Wed, 21 Jun 2006 10:12:17 -0700
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
.
- Follow-Ups:
- Re: WinInet - multi connections
- From: Scherbina Vladimir
- Re: WinInet - multi connections
- References:
- WinInet - multi connections
- From: baronadav
- WinInet - multi connections
- Prev by Date: Re: getlasterror 997 after blocking recv returns error
- Next by Date: Re: WinInet - multi connections
- Previous by thread: WinInet - multi connections
- Next by thread: Re: WinInet - multi connections
- Index(es):
Relevant Pages
|