Commit ee94594a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Also reset the workspaces when we do not reuse the backend connection,

we still reuse the structure.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1619 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 1f611b71
......@@ -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++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment