Lines Matching defs:rtt

2  * services/cache/infra.c - infrastructure cache, server rtt and capabilities
70 * infra-cache-max-rtt) change it to just above the RTT_BAND. */
533 rtt_init(&data->rtt);
597 int old = ((struct infra_data*)e->data)->rtt.rto;
612 ((struct infra_data*)e->data)->rtt.rto
628 *to = rtt_timeout(&data->rtt);
636 *to = rtt_timeout(&data->rtt);
638 rtt_notimeout(&data->rtt)*4 <= *to)) {
707 if(data->rtt.rto >= RTT_MAX_TIMEOUT)
710 data->rtt.rto = still_useful_timeout();
734 /* have an entry, update the rtt */
740 data->rtt.rto = orig_rtt;
743 rtt_lost(&data->rtt, orig_rtt);
758 if(rtt_unclamped(&data->rtt) >= USEFUL_SERVER_TOP_TIMEOUT)
759 rtt_init(&data->rtt);
760 rtt_update(&data->rtt, roundtrip);
768 if(data->rtt.rto > 0)
769 rto = data->rtt.rto;
779 size_t nmlen, struct rtt_info* rtt, int* delay, time_t timenow,
790 memmove(rtt, &data->rtt, sizeof(*rtt));
818 /* have an entry, update the rtt, and the ttl */
837 int* lame, int* dnsseclame, int* reclame, int* rtt, time_t timenow)
845 *rtt = rtt_unclamped(&host->rtt);
846 if(host->rtt.rto >= PROBE_MAXRTO && timenow >= host->probedelay
849 if(*rtt >= USEFUL_SERVER_TOP_TIMEOUT)
850 *rtt = still_useful_timeout();
851 } else if(host->rtt.rto >= PROBE_MAXRTO && timenow < host->probedelay
852 && rtt_notimeout(&host->rtt)*4 <= host->rtt.rto) {
857 *rtt = USEFUL_SERVER_TOP_TIMEOUT;
858 else *rtt = still_useful_timeout();
861 *rtt = USEFUL_SERVER_TOP_TIMEOUT;
862 else *rtt = still_useful_timeout();
865 *rtt = USEFUL_SERVER_TOP_TIMEOUT;
866 else *rtt = still_useful_timeout();
872 if(host->rtt.rto >= USEFUL_SERVER_TOP_TIMEOUT) {
874 *rtt = still_useful_timeout();