Skip to main content
gamedev.net
🔒 Locked

InternetOpenUrl() stucks

Started by cpp forever Sep 9, 2005 at 5:52 AM 1 replies 950+ views
Original Post
cpp forever
cpp forever
Sometimes when opening too much HINTERNETs w/ InternetOpenUrl() the next InternetOpenUrl()'s calls stucks for a long time & maybe forever (received only 60 & 320 status codes and silence:) ).
ai-blog.org: AI is discussed here.
Teric
Teric
There is a limit to how many open connections per server you can have at a time (I think it is 2 by default). You can go in and adjust that limit by calling InternetSetOption and programmatically increasing MaxConnectionsPerServer. This may bog down your bandwidth, however.

Another solution is to queue up requests and execute each one once the previous request has completed.
I am always open to feedback, positive or negative...
cpp forever
cpp forever
Quote:
Original post by Teric
There is a limit to how many open connections per server you can have at a time (I think it is 2 by default). You can go in and adjust that limit by calling InternetSetOption and programmatically increasing MaxConnectionsPerServer. This may bog down your bandwidth, however.

Another solution is to queue up requests and execute each one once the previous request has completed.


But will the next 3rd or 4th... InternetOpenUrl() wait (I mean, will it send a status code) until 1st & 2nd are closed? Or it will just fail?
ai-blog.org: AI is discussed here.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.