requests, otherwise we end up filling it up with Content-Length: headers
if we manage to keep the backend busy.
Also make the snapshot of the preferred workspace-size volatile to ensure
that we are consistent.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1584
d4fa192b-c00b-0410-8231-
f00ffab90ce4
{
struct vbe_conn *vbc;
unsigned char *p;
- unsigned space;
+ volatile unsigned space;
space = params->mem_workspace;
vbc = calloc(sizeof *vbc + space * 2, 1);
assert(vc->fd >= 0);
AN(vc->backend);
WSL(w, SLT_BackendReuse, vc->fd, "%s", vc->backend->vcl_name);
+ WS_Reset(vc->http->ws);
+ WS_Reset(vc->http2->ws);
LOCK(&vbemtx);
VSL_stats->backend_recycle++;
TAILQ_INSERT_HEAD(&vc->backend->connlist, vc, list);