[master] f9aa628 We measure the timeout_req starting from sp->t_first(record first byte received timestamp) instead of sp->t_idle.

arianna-aondio arianna.aondio at varnish-software.com
Wed Feb 4 11:15:25 CET 2015


commit f9aa6281f5194ed27cfa4c7ad7ce50cdb8f9bf1c
Author: arianna-aondio <arianna.aondio at varnish-software.com>
Date:   Wed Feb 4 11:05:47 2015 +0100

    We measure the timeout_req starting from sp->t_first(record first byte
    received timestamp) instead of sp->t_idle.

diff --git a/bin/varnishd/http1/cache_http1_fsm.c b/bin/varnishd/http1/cache_http1_fsm.c
index a8c9959..84a8c16 100644
--- a/bin/varnishd/http1/cache_http1_fsm.c
+++ b/bin/varnishd/http1/cache_http1_fsm.c
@@ -121,7 +121,7 @@ http1_wait(struct sess *sp, struct worker *wrk, struct req *req)
 			if (isnan(req->t_first))
 				/* Record first byte received time stamp */
 				req->t_first = now;
-			when = sp->t_idle + cache_param->timeout_req;
+			when = req->t_first + cache_param->timeout_req;
 			tmo = (int)(1e3 * (when - now));
 			if (when < now || tmo == 0) {
 				why = SC_RX_TIMEOUT;



More information about the varnish-commit mailing list