Lines Matching refs:timeout
242 /* the timeout may be set -1 (forever) */
243 int timeout = data->set.dns_cache_timeout;
256 time_t oldest = hostcache_prune(data->dns.hostcache, timeout, now);
259 timeout = (int)oldest; /* we know it fits */
261 timeout = INT_MAX - 1;
265 } while(timeout && (data->dns.hostcache->size > MAX_DNS_CACHE_SIZE));
872 * timeout. This function might return immediately if we're using asynch
880 * disabled by the application, then a nonzero timeout will cause a
881 * timeout after the specified number of milliseconds. Otherwise, timeout
908 volatile long timeout;
916 /* got an already expired timeout */
921 /* Ignore the timeout when signals are disabled */
922 timeout = 0;
924 timeout = (timeoutms > LONG_MAX) ? LONG_MAX : (long)timeoutms;
926 if(!timeout)
927 /* USE_ALARM_TIMEOUT defined, but no timeout actually requested */
930 if(timeout < 1000) {
934 "remaining timeout of %ld too small to resolve via SIGALRM method",
935 timeout);
938 /* This allows us to time-out from the name resolver, as the timeout
975 /* alarm() makes a signal get sent when the timeout fires off, and that
977 prev_alarm = alarm(curlx_sltoui(timeout/1000L));
983 infof(data, "timeout on name lookup is not supported");
1270 timeout that starts _now_. */