Lines Matching defs:rtt
2 * services/cache/infra.c - infrastructure cache, server rtt and capabilities
57 * even if another type has completely rtt maxed it, the different type
337 rtt_init(&data->rtt);
401 int old = ((struct infra_data*)e->data)->rtt.rto;
415 ((struct infra_data*)e->data)->rtt.rto
430 *to = rtt_timeout(&data->rtt);
438 *to = rtt_timeout(&data->rtt);
439 if(*to >= PROBE_MAXRTO && rtt_notimeout(&data->rtt)*4 <= *to) {
508 if(data->rtt.rto >= RTT_MAX_TIMEOUT)
511 data->rtt.rto = RTT_MAX_TIMEOUT-1000;
532 /* have an entry, update the rtt */
535 rtt_lost(&data->rtt, orig_rtt);
550 if(rtt_unclamped(&data->rtt) >= USEFUL_SERVER_TOP_TIMEOUT)
551 rtt_init(&data->rtt);
552 rtt_update(&data->rtt, roundtrip);
560 if(data->rtt.rto > 0)
561 rto = data->rtt.rto;
571 size_t nmlen, struct rtt_info* rtt, int* delay, time_t timenow,
582 memmove(rtt, &data->rtt, sizeof(*rtt));
610 /* have an entry, update the rtt, and the ttl */
629 int* lame, int* dnsseclame, int* reclame, int* rtt, time_t timenow)
637 *rtt = rtt_unclamped(&host->rtt);
638 if(host->rtt.rto >= PROBE_MAXRTO && timenow < host->probedelay
639 && rtt_notimeout(&host->rtt)*4 <= host->rtt.rto) {
644 *rtt = USEFUL_SERVER_TOP_TIMEOUT;
645 else *rtt = USEFUL_SERVER_TOP_TIMEOUT-1000;
648 *rtt = USEFUL_SERVER_TOP_TIMEOUT;
649 else *rtt = USEFUL_SERVER_TOP_TIMEOUT-1000;
652 *rtt = USEFUL_SERVER_TOP_TIMEOUT;
653 else *rtt = USEFUL_SERVER_TOP_TIMEOUT-1000;
661 if(host->rtt.rto >= USEFUL_SERVER_TOP_TIMEOUT) {
663 *rtt = USEFUL_SERVER_TOP_TIMEOUT-1000;