Lines Matching refs:rtt

2  * services/cache/infra.c - infrastructure cache, server rtt and capabilities
59 * even if another type has completely rtt maxed it, the different type
385 rtt_init(&data->rtt);
449 int old = ((struct infra_data*)e->data)->rtt.rto;
464 ((struct infra_data*)e->data)->rtt.rto
480 *to = rtt_timeout(&data->rtt);
488 *to = rtt_timeout(&data->rtt);
490 rtt_notimeout(&data->rtt)*4 <= *to)) {
559 if(data->rtt.rto >= RTT_MAX_TIMEOUT)
562 data->rtt.rto = RTT_MAX_TIMEOUT-1000;
586 /* have an entry, update the rtt */
592 data->rtt.rto = orig_rtt;
595 rtt_lost(&data->rtt, orig_rtt);
610 if(rtt_unclamped(&data->rtt) >= USEFUL_SERVER_TOP_TIMEOUT)
611 rtt_init(&data->rtt);
612 rtt_update(&data->rtt, roundtrip);
620 if(data->rtt.rto > 0)
621 rto = data->rtt.rto;
631 size_t nmlen, struct rtt_info* rtt, int* delay, time_t timenow,
642 memmove(rtt, &data->rtt, sizeof(*rtt));
670 /* have an entry, update the rtt, and the ttl */
689 int* lame, int* dnsseclame, int* reclame, int* rtt, time_t timenow)
697 *rtt = rtt_unclamped(&host->rtt);
698 if(host->rtt.rto >= PROBE_MAXRTO && timenow >= host->probedelay
701 if(*rtt >= USEFUL_SERVER_TOP_TIMEOUT)
702 *rtt = USEFUL_SERVER_TOP_TIMEOUT-1000;
703 } else if(host->rtt.rto >= PROBE_MAXRTO && timenow < host->probedelay
704 && rtt_notimeout(&host->rtt)*4 <= host->rtt.rto) {
709 *rtt = USEFUL_SERVER_TOP_TIMEOUT;
710 else *rtt = USEFUL_SERVER_TOP_TIMEOUT-1000;
713 *rtt = USEFUL_SERVER_TOP_TIMEOUT;
714 else *rtt = USEFUL_SERVER_TOP_TIMEOUT-1000;
717 *rtt = USEFUL_SERVER_TOP_TIMEOUT;
718 else *rtt = USEFUL_SERVER_TOP_TIMEOUT-1000;
726 if(host->rtt.rto >= USEFUL_SERVER_TOP_TIMEOUT ||
729 *rtt = USEFUL_SERVER_TOP_TIMEOUT-1000;