mirror of
https://github.com/curl/curl.git
synced 2026-06-02 11:54:16 +03:00
setopt: CURLOPT_MAXCONNECTS set to 0 restores default value
Closes #21829
This commit is contained in:
parent
12869080a1
commit
c53426231d
1 changed files with 2 additions and 2 deletions
|
|
@ -847,9 +847,9 @@ static CURLcode setopt_long_net(struct Curl_easy *data, CURLoption option,
|
|||
s->dns_cache_timeout_ms = -1;
|
||||
break;
|
||||
case CURLOPT_MAXCONNECTS:
|
||||
result = value_range(&arg, 1, 1, INT_MAX);
|
||||
result = value_range(&arg, 0, 0, INT_MAX);
|
||||
if(!result)
|
||||
s->maxconnects = (uint32_t)arg;
|
||||
s->maxconnects = arg ? (uint32_t)arg : DEFAULT_CONNCACHE_SIZE;
|
||||
break;
|
||||
case CURLOPT_SERVER_RESPONSE_TIMEOUT:
|
||||
return setopt_set_timeout_sec(&s->server_response_timeout, arg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue