Lines Matching defs:timeout

227 	struct event timeout_event;  /* used to keep the timeout for */
507 struct timeval timeout;
521 memcpy(&timeout, &ns->base->global_nameserver_probe_initial_timeout,
523 for (i=ns->failed_times; i > 0 && timeout.tv_sec < MAX_PROBE_TIMEOUT; --i) {
524 timeout.tv_sec *= TIMEOUT_BACKOFF_FACTOR;
525 timeout.tv_usec *= TIMEOUT_BACKOFF_FACTOR;
526 if (timeout.tv_usec > 1000000) {
527 timeout.tv_sec += timeout.tv_usec / 1000000;
528 timeout.tv_usec %= 1000000;
531 if (timeout.tv_sec > MAX_PROBE_TIMEOUT) {
532 timeout.tv_sec = MAX_PROBE_TIMEOUT;
533 timeout.tv_usec = 0;
538 if (evtimer_add(&ns->timeout_event, &timeout) < 0) {
662 log(EVDNS_LOG_DEBUG, "Removing timeout for request %p", req);
929 * Treat this as a timeout, not a failure.
936 /* Call the timeout function */
2285 * we'll set a timeout, which will time out, and make us retransmit the
2292 "Setting timeout for request %p, sent to nameserver %p", req, req->ns);
3497 } else if (str_matches_option(option, "timeout:")) {
3501 log(EVDNS_LOG_DEBUG, "Setting timeout to %s", val);
3546 } else if (str_matches_option(option, "initial-probe-timeout:")) {
3552 log(EVDNS_LOG_DEBUG, "Setting initial probe timeout to %s",
4326 /* And this event is a timeout that will tell us to cancel the second
4328 struct event timeout;
4372 event_del(&data->timeout);
4417 /* We only use this timeout callback when we have an answer for
4447 return event_add(&data->timeout, &evdns_base->global_getaddrinfo_allow_skew);
4506 /* Internal cancel request from timeout or internal error.
4784 * timeout before we report it, to see if the other one arrives. If
4816 evtimer_assign(&data->timeout, dns_base->event_base,
4840 event_del(&data->timeout);