mirror of
https://github.com/curl/curl.git
synced 2026-08-25 20:03:36 +03:00
Jared Lundell filed bug report #1604956
(http://curl.haxx.se/bug/view.cgi?id=1604956) which identified setting CURLOPT_MAXCONNECTS to zero caused libcurl to SIGSEGV. Starting now, libcurl will always internally use no less than 1 entry in the connection cache.
This commit is contained in:
parent
d6b0612882
commit
e4505aefd9
6 changed files with 29 additions and 7 deletions
|
|
@ -347,7 +347,7 @@ CURLM *curl_multi_init(void)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
multi->connc = Curl_mk_connc(CONNCACHE_MULTI);
|
||||
multi->connc = Curl_mk_connc(CONNCACHE_MULTI, -1);
|
||||
if(!multi->connc) {
|
||||
Curl_hash_destroy(multi->hostcache);
|
||||
free(multi);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue