From: Max Dymond Date: Wed, 11 Oct 2017 12:18:46 +0000 (+0100) Subject: multi: allow table handle sizes to be overridden X-Git-Tag: curl-7_57_0~105 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3340b456a544519531f8d42ec77d33251b765efa;p=thirdparty%2Fcurl.git multi: allow table handle sizes to be overridden Allow users to specify their own hash define for CURL_CONNECTION_HASH_SIZE so that both values can be overridden. Closes #1982 --- diff --git a/lib/multi.c b/lib/multi.c index d5c6a3e83b..bf0e89ae6a 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -59,7 +59,9 @@ #define CURL_SOCKET_HASH_TABLE_SIZE 911 #endif +#ifndef CURL_CONNECTION_HASH_SIZE #define CURL_CONNECTION_HASH_SIZE 97 +#endif #define CURL_MULTI_HANDLE 0x000bab1e