mirror of
https://github.com/curl/curl.git
synced 2026-08-24 11:33:33 +03:00
multi: use larger dns hash table for multi interface
Have curl_multi_init() use a much larger DNS hash table than used for the easy interface to scale and perform better when used with _many_ host names. curl_share_init() sets an in-between size. Inspired-by: Ivan Tsybulin See #9340 Closes #9376
This commit is contained in:
parent
c5c6e86783
commit
7632c0d25a
7 changed files with 18 additions and 11 deletions
|
|
@ -54,7 +54,7 @@ static CURLcode unit_setup(void)
|
|||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
Curl_init_dnscache(&hp);
|
||||
Curl_init_dnscache(&hp, 7);
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue