Based on the discussion on irc. f.-
From d7da751813ef8519b1ea49fd7ccf144bf62a5087 Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" <[email protected]> Date: Mon, 13 Jul 2015 19:36:49 +0100 Subject: [PATCH] Rearrange so it's lock-protected
--- bin/varnishd/cache/cache_backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/varnishd/cache/cache_backend.c b/bin/varnishd/cache/cache_backend.c index d9ce95a..41c1616 100644 --- a/bin/varnishd/cache/cache_backend.c +++ b/bin/varnishd/cache/cache_backend.c @@ -111,6 +111,7 @@ vbe_dir_getfd(struct worker *wrk, struct backend *bp, struct busyobj *bo) Lck_Lock(&bp->mtx); bp->n_conn++; bp->vsc->conn++; + bp->vsc->req++; Lck_Unlock(&bp->mtx); VTCP_myname(vc->fd, abuf1, sizeof abuf1, pbuf1, sizeof pbuf1); @@ -118,7 +119,6 @@ vbe_dir_getfd(struct worker *wrk, struct backend *bp, struct busyobj *bo) VSLb(bo->vsl, SLT_BackendOpen, "%d %s %s %s %s %s", vc->fd, bp->display_name, abuf2, pbuf2, abuf1, pbuf1); - bp->vsc->req++; INIT_OBJ(bo->htc, HTTP_CONN_MAGIC); bo->htc->priv = vc; bo->htc->fd = vc->fd; -- 2.1.4
_______________________________________________ varnish-dev mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev
