mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:35:52 +00:00
winhttp: Set name resolution timeout in download_script().
This commit is contained in:
parent
289d21a5d2
commit
cbfe940a1e
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue