From 74949755ed258396ee99a4d36be44f7f8891b135 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 12 Sep 2007 06:12:18 +0000 Subject: [PATCH] Make sure to initialize t_end if we drop sessions. Fixes #132 Many thanks to Janis Putrams for debugging this. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1942 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_pool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/varnish-cache/bin/varnishd/cache_pool.c b/varnish-cache/bin/varnishd/cache_pool.c index 1855aa66..87f3b827 100644 --- a/varnish-cache/bin/varnishd/cache_pool.c +++ b/varnish-cache/bin/varnishd/cache_pool.c @@ -310,6 +310,7 @@ WRK_QueueSession(struct sess *sp) (params->wthread_max * params->overflow_max) / 100)) { VSL_stats->n_wrk_drop++; UNLOCK(&tmtx); + sp->t_end = TIM_real(); vca_close_session(sp, "dropped"); vca_return_session(sp); return; -- 2.39.5