]> err.no Git - varnish/commitdiff
Also reset the workspaces when we do not reuse the backend connection,
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 2 Jul 2007 17:30:03 +0000 (17:30 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 2 Jul 2007 17:30:03 +0000 (17:30 +0000)
we still reuse the structure.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1619 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_backend.c

index 10f5fc3402d3616a9360cbdf91c4b151be090de2..050e258853b371e3a0f10ebea67f3c9d78008fa1 100644 (file)
@@ -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++;