From: phk Date: Wed, 12 Sep 2007 06:12:18 +0000 (+0000) Subject: Make sure to initialize t_end if we drop sessions. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74949755ed258396ee99a4d36be44f7f8891b135;p=varnish 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 --- 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;