r1619 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon Jul 2 19:30:03 CEST 2007


Author: phk
Date: 2007-07-02 19:30:03 +0200 (Mon, 02 Jul 2007)
New Revision: 1619

Modified:
   trunk/varnish-cache/bin/varnishd/cache_backend.c
Log:
Also reset the workspaces when we do not reuse the backend connection,
we still reuse the structure.


Modified: trunk/varnish-cache/bin/varnishd/cache_backend.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_backend.c	2007-07-02 13:30:06 UTC (rev 1618)
+++ trunk/varnish-cache/bin/varnishd/cache_backend.c	2007-07-02 17:30:03 UTC (rev 1619)
@@ -337,6 +337,8 @@
 		AZ(close(vc->fd));
 	vc->fd = -1;
 	vc->backend = NULL;
+	WS_Reset(vc->http->ws);
+	WS_Reset(vc->http2->ws);
 	LOCK(&vbemtx);
 	TAILQ_INSERT_HEAD(&vbe_head, vc, list);
 	VSL_stats->backend_unused++;




More information about the varnish-commit mailing list