mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +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
|
|
@ -42,8 +42,9 @@ bool Curl_is_in_callback(struct Curl_easy *easy);
|
|||
CURLcode Curl_preconnect(struct Curl_easy *data);
|
||||
|
||||
/* Internal version of curl_multi_init() accepts size parameters for the
|
||||
socket and connection hashes */
|
||||
struct Curl_multi *Curl_multi_handle(int hashsize, int chashsize);
|
||||
socket, connection and dns hashes */
|
||||
struct Curl_multi *Curl_multi_handle(int hashsize, int chashsize,
|
||||
int dnssize);
|
||||
|
||||
/* the write bits start at bit 16 for the *getsock() bitmap */
|
||||
#define GETSOCK_WRITEBITSTART 16
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue