From: phk Date: Mon, 2 Jul 2007 17:30:03 +0000 (+0000) Subject: Also reset the workspaces when we do not reuse the backend connection, X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=489eeb87f07a594d63266b767d87bad5a7f145eb;p=varnish Also reset the workspaces when we do not reuse the backend connection, we still reuse the structure. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1619 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_backend.c b/varnish-cache/bin/varnishd/cache_backend.c index 10f5fc34..050e2588 100644 --- a/varnish-cache/bin/varnishd/cache_backend.c +++ b/varnish-cache/bin/varnishd/cache_backend.c @@ -337,6 +337,8 @@ VBE_ClosedFd(struct worker *w, struct vbe_conn *vc, int already) 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++;