I have some InternetOpenUrl requests that are strangely timing out. The endpoint is there and the URL is correct. This happens in a synchronous loop inside an activex control, and about the 6th time it executes, it times out without hitting the server.
HINTERNET hINet = InternetOpen(TEXT("InetURL/1.0"), INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0 );
/*hangs*/ HINTERNET hFile = InternetOpenUrl( hINet, url.c_str(), headers, headersLen, dwFlags, dwContext);
GetLastError just returns 12002 operation timed out. Here's the full snippet: http://gist.github.com/559317
Interestingly, if I change the InternetOpen flag to INTERNET_OPEN_TYPE_DIRECT, and fiddler is NOT running, I get the failure (after a few successful requests), and if i run fiddler, the requests all succeed.
so far this has been replicated on Win7/IE8, and Vista64/IE8, XP/IE6