mirror of
https://github.com/curl/curl.git
synced 2026-08-01 10:18:08 +03:00
global_init: move the IPv6 works status bool to multi handle
Previously it was stored in a global state which contributed to curl_global_init's thread unsafety. This boolean is now instead figured out in curl_multi_init() and stored in the multi handle. Less effective, but thread safe. Closes #4851
This commit is contained in:
parent
872ea75acf
commit
0b030a5b23
8 changed files with 27 additions and 25 deletions
|
|
@ -370,6 +370,7 @@ 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 ENABLE_WAKEUP
|
||||
if(Curl_socketpair(AF_UNIX, SOCK_STREAM, 0, multi->wakeup_pair) < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue