Loading lib/hostip.c +4 −2 Original line number Diff line number Diff line Loading @@ -524,7 +524,7 @@ int Curl_resolv_timeout(struct connectdata *conn, const char *hostname, int port, struct Curl_dns_entry **entry, volatile long timeout) long timeoutms) { #ifdef USE_ALARM_TIMEOUT #ifdef HAVE_SIGACTION Loading @@ -536,7 +536,7 @@ int Curl_resolv_timeout(struct connectdata *conn, void (*keep_sigact)(int); /* store the old handler here */ #endif /* HAVE_SIGNAL */ #endif /* HAVE_SIGACTION */ volatile long timeout; unsigned int prev_alarm=0; struct SessionHandle *data = conn->data; #endif /* USE_ALARM_TIMEOUT */ Loading @@ -548,6 +548,8 @@ int Curl_resolv_timeout(struct connectdata *conn, if (data->set.no_signal) /* Ignore the timeout when signals are disabled */ timeout = 0; else timeout = timeoutms; if(timeout && timeout < 1000) /* The alarm() function only provides integer second resolution, so if Loading lib/hostip.h +1 −1 Original line number Diff line number Diff line Loading @@ -166,7 +166,7 @@ int Curl_resolv(struct connectdata *conn, const char *hostname, int port, struct Curl_dns_entry **dnsentry); int Curl_resolv_timeout(struct connectdata *conn, const char *hostname, int port, struct Curl_dns_entry **dnsentry, volatile long timeout); long timeoutms); /* * Curl_ipvalid() checks what CURL_IPRESOLVE_* requirements that might've Loading Loading
lib/hostip.c +4 −2 Original line number Diff line number Diff line Loading @@ -524,7 +524,7 @@ int Curl_resolv_timeout(struct connectdata *conn, const char *hostname, int port, struct Curl_dns_entry **entry, volatile long timeout) long timeoutms) { #ifdef USE_ALARM_TIMEOUT #ifdef HAVE_SIGACTION Loading @@ -536,7 +536,7 @@ int Curl_resolv_timeout(struct connectdata *conn, void (*keep_sigact)(int); /* store the old handler here */ #endif /* HAVE_SIGNAL */ #endif /* HAVE_SIGACTION */ volatile long timeout; unsigned int prev_alarm=0; struct SessionHandle *data = conn->data; #endif /* USE_ALARM_TIMEOUT */ Loading @@ -548,6 +548,8 @@ int Curl_resolv_timeout(struct connectdata *conn, if (data->set.no_signal) /* Ignore the timeout when signals are disabled */ timeout = 0; else timeout = timeoutms; if(timeout && timeout < 1000) /* The alarm() function only provides integer second resolution, so if Loading
lib/hostip.h +1 −1 Original line number Diff line number Diff line Loading @@ -166,7 +166,7 @@ int Curl_resolv(struct connectdata *conn, const char *hostname, int port, struct Curl_dns_entry **dnsentry); int Curl_resolv_timeout(struct connectdata *conn, const char *hostname, int port, struct Curl_dns_entry **dnsentry, volatile long timeout); long timeoutms); /* * Curl_ipvalid() checks what CURL_IPRESOLVE_* requirements that might've Loading