b059f7d introduces new way of processing CURLOPT_DNS_CACHE_TIMEOUT option with function "setopt_set_timeout_sec" .
According to document
|
disable caching, or set to -1 to make the cached entries remain forever. By |
where is special -1 value (remain cache entries forever) for this option and new implentation will disallow to set it with CURLE_BAD_FUNCTION_ARGUMENT result.
if(secs < 0)
return CURLE_BAD_FUNCTION_ARGUMENT;
I think it might be serious regression, @bagder please fix this issue.
curl/libcurl version
curl 8.16+
operating system
windows
b059f7d introduces new way of processing CURLOPT_DNS_CACHE_TIMEOUT option with function "setopt_set_timeout_sec" .
According to document
curl/docs/libcurl/opts/CURLOPT_DNS_CACHE_TIMEOUT.md
Line 35 in 5d32c4f
where is special -1 value (remain cache entries forever) for this option and new implentation will disallow to set it with CURLE_BAD_FUNCTION_ARGUMENT result.
I think it might be serious regression, @bagder please fix this issue.
curl/libcurl version
curl 8.16+
operating system
windows