mirror of
https://github.com/curl/curl.git
synced 2026-07-17 08:17:17 +03:00
hostip: don't use alarm() for DoH resolves
When built to use the synch resolver and DoH is used for a transfer, do not use alarm() for timeout since DoH resolving is not blocking. Closes #16649
This commit is contained in:
parent
3c2948e0a6
commit
75acda70aa
1 changed files with 3 additions and 2 deletions
|
|
@ -932,8 +932,9 @@ enum resolve_t Curl_resolv_timeout(struct Curl_easy *data,
|
|||
else
|
||||
timeout = (timeoutms > LONG_MAX) ? LONG_MAX : (long)timeoutms;
|
||||
|
||||
if(!timeout)
|
||||
/* USE_ALARM_TIMEOUT defined, but no timeout actually requested */
|
||||
if(!timeout || data->set.doh)
|
||||
/* USE_ALARM_TIMEOUT defined, but no timeout actually requested or resolve
|
||||
done using DoH */
|
||||
return Curl_resolv(data, hostname, port, TRUE, entry);
|
||||
|
||||
if(timeout < 1000) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue