[master] 26e8d49 Do not step back (struct sess).t_idle

Nils Goroll nils.goroll at uplex.de
Mon Jan 8 17:21:07 UTC 2018


commit 26e8d49fcfdf678a42276d753a75fbd411d7ee02
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Sat Dec 30 13:48:16 2017 +0100

    Do not step back (struct sess).t_idle
    
    t_prev from the request we are cleaning up is not the most recent
    relevant time stamp, in particular for H2

diff --git a/bin/varnishd/cache/cache_req.c b/bin/varnishd/cache/cache_req.c
index 25c4ce1..8fa77b9 100644
--- a/bin/varnishd/cache/cache_req.c
+++ b/bin/varnishd/cache/cache_req.c
@@ -211,7 +211,7 @@ Req_Cleanup(struct sess *sp, struct worker *wrk, struct req *req)
 	}
 	req->req_bodybytes = 0;
 
-	if (!isnan(req->t_prev) && req->t_prev > 0.)
+	if (!isnan(req->t_prev) && req->t_prev > 0. && req->t_prev > sp->t_idle)
 		sp->t_idle = req->t_prev;
 	else
 		sp->t_idle = W_TIM_real(wrk);


More information about the varnish-commit mailing list