]> err.no Git - varnish/commitdiff
Make sure to initialize t_end if we drop sessions.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 12 Sep 2007 06:12:18 +0000 (06:12 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 12 Sep 2007 06:12:18 +0000 (06:12 +0000)
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

index 1855aa662b7cf81e62f45cd14a3eda639f32738c..87f3b827727728d3d35d3e28b6c2100c634b8912 100644 (file)
@@ -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;