mirror of
https://github.com/curl/curl.git
synced 2026-08-24 13:03:35 +03:00
hostip: lazily wait to figure out if IPv6 works until needed
The check may take many milliseconds, so now it is performed once the value is first needed. Also, this change makes sure that the value is not used if the resolve is set to be IPv4-only. Closes #9553
This commit is contained in:
parent
7295e62c66
commit
46f3fe0e75
7 changed files with 17 additions and 13 deletions
|
|
@ -417,7 +417,6 @@ struct Curl_multi *Curl_multi_handle(int hashsize, /* socket hash */
|
|||
/* -1 means it not set by user, use the default value */
|
||||
multi->maxconnects = -1;
|
||||
multi->max_concurrent_streams = 100;
|
||||
multi->ipv6_works = Curl_ipv6works(NULL);
|
||||
|
||||
#ifdef USE_WINSOCK
|
||||
multi->wsa_event = WSACreateEvent();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue