mirror of
https://github.com/curl/curl.git
synced 2026-08-01 13:48:19 +03:00
trace if synch resolving is using signals or not
This commit is contained in:
parent
4db91c4411
commit
08cf30dc54
1 changed files with 10 additions and 0 deletions
10
lib/hostip.c
10
lib/hostip.c
|
|
@ -1062,6 +1062,16 @@ CURLcode Curl_resolv_timeout(struct Curl_easy *data,
|
|||
|
||||
*entry = NULL;
|
||||
|
||||
#ifdef USE_ALARM_TIMEOUT
|
||||
CURL_TRC_DNS(data, "starting resolve of %s:%d, timeout of %"
|
||||
FMT_TIMEDIFF_T "ms",
|
||||
hostname, port, timeoutms);
|
||||
#else
|
||||
CURL_TRC_DNS(data, "starting resolve of %s:%d, no ALARM available,
|
||||
"timeout of %" FMT_TIMEDIFF_T "ms will not apply",
|
||||
hostname, port, timeoutms);
|
||||
#endif
|
||||
|
||||
if(timeoutms < 0)
|
||||
/* got an already expired timeout */
|
||||
return CURLE_OPERATION_TIMEDOUT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue