r1942 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Wed Sep 12 08:12:18 CEST 2007
Author: phk
Date: 2007-09-12 08:12:18 +0200 (Wed, 12 Sep 2007)
New Revision: 1942
Modified:
trunk/varnish-cache/bin/varnishd/cache_pool.c
Log:
Make sure to initialize t_end if we drop sessions.
Fixes #132
Many thanks to Janis Putrams for debugging this.
Modified: trunk/varnish-cache/bin/varnishd/cache_pool.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_pool.c 2007-09-07 11:31:18 UTC (rev 1941)
+++ trunk/varnish-cache/bin/varnishd/cache_pool.c 2007-09-12 06:12:18 UTC (rev 1942)
@@ -310,6 +310,7 @@
(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;
More information about the varnish-commit
mailing list