I’ve encountered a problem with the ‘connectionTimeOutMs’ param of the URL::createInputStream under Windows.
This param is completely ignored because of a known bug in the Microsoft wininet API. Therefore the createInputStream function blocks about 30 seconds, if it can’t connect.
I’ve seen that you’re setting:
on line 85 of the juce_win32_Network.cpp, but this hasn’t any effect.
Please check these links, to get a description and workaround for the wininet bug:
Although there are comments that this issue is fixed, there are many post on the net, that it still does not work without the mentioned workarounds and it does not work for the juce_win32_Network.cpp.
It would be cool if you could implement the described fix, because it blocks the calling thread for more than 30 seconds, which is really annoying, especially when the user tries to close the app.
It also would be very nice if you could add the option:
int disable = 1;
InternetSetOption (sessionHandle, INTERNET_OPTION_DISABLE_AUTODIAL, &disable, sizeof(disable));
(Code was tested - works)
Because I don’t think an app should “force” a user to connect to the internet if he might be disconnected for some good reason.
If you don’t like the idea of disabling autodialup permanently, maybe you could add it as an optional param.