Jump to content
  • Advertisement
Sign in to follow this  
cpp forever

InternetOpenUrl() stucks

This topic is 4815 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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:) ).

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!