r5491 - trunk/varnish-cache/bin/varnishd
phk at varnish-cache.org
phk at varnish-cache.org
Tue Nov 2 15:06:14 CET 2010
Author: phk
Date: 2010-11-02 15:06:12 +0100 (Tue, 02 Nov 2010)
New Revision: 5491
Modified:
trunk/varnish-cache/bin/varnishd/cache_center.c
Log:
If requests come in fast enough on a single connection, typically
when running synthetic benchmarks, we need to reset the worker threads
workspace between requests, or we will eventually run out.
This is an embarrasingly old bug.
Fixes: #808
Modified: trunk/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_center.c 2010-11-02 11:12:35 UTC (rev 5490)
+++ trunk/varnish-cache/bin/varnishd/cache_center.c 2010-11-02 14:06:12 UTC (rev 5491)
@@ -291,6 +291,7 @@
WRK_SumStat(sp->wrk);
/* Reset the workspace to the session-watermark */
WS_Reset(sp->ws, sp->ws_ses);
+ WS_Reset(sp->wrk->ws, NULL);
i = HTC_Reinit(sp->htc);
if (i == 1) {
More information about the varnish-commit
mailing list