r4075 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon May 11 12:59:23 CEST 2009


Author: phk
Date: 2009-05-11 12:59:23 +0200 (Mon, 11 May 2009)
New Revision: 4075

Modified:
   trunk/varnish-cache/bin/varnishd/cache_center.c
Log:
We need to reset the worker threads workspace between requests if
we short-cut through STP_AGAIN.

Expected to fix #487



Modified: trunk/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_center.c	2009-05-11 10:57:39 UTC (rev 4074)
+++ trunk/varnish-cache/bin/varnishd/cache_center.c	2009-05-11 10:59:23 UTC (rev 4075)
@@ -97,6 +97,7 @@
 	AZ(sp->obj);
 	assert(sp->xid == 0);
 
+	WS_Reset(sp->wrk->ws, NULL);
 	i = HTC_Complete(sp->htc);
 	while (i == 0)
 		i = HTC_Rx(sp->htc);



More information about the varnish-commit mailing list