Commit cbfe940a authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

winhttp: Set name resolution timeout in download_script().

parent 289d21a5
......@@ -1922,6 +1922,7 @@ static char *download_script( const WCHAR *url, DWORD *out_size )
hostname[uc.dwHostNameLength] = 0;
if (!(ses = WinHttpOpen( NULL, WINHTTP_ACCESS_TYPE_NO_PROXY, NULL, NULL, 0 ))) goto done;
WinHttpSetTimeouts( ses, 5000, 60000, 30000, 30000 );
if (!(con = WinHttpConnect( ses, hostname, uc.nPort, 0 ))) goto done;
if (uc.nScheme == INTERNET_SCHEME_HTTPS) flags |= WINHTTP_FLAG_SECURE;
if (!(req = WinHttpOpenRequest( con, NULL, uc.lpszUrlPath, NULL, NULL, acceptW, flags ))) goto done;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment