[master] e4e4e21 Revive the backend_conn counter

Dag Haavi Finstad daghf at varnish-software.com
Tue Mar 8 19:28:56 CET 2016


commit e4e4e219b02b818d9ae4ed6027cb78fde558b285
Author: Dag Haavi Finstad <daghf at varnish-software.com>
Date:   Tue Mar 8 19:27:36 2016 +0100

    Revive the backend_conn counter
    
    Discussed with Federico.
    
    Fixes: #1725

diff --git a/bin/varnishd/cache/cache_backend_tcp.c b/bin/varnishd/cache/cache_backend_tcp.c
index 8ad54e3..1a3ca73 100644
--- a/bin/varnishd/cache/cache_backend_tcp.c
+++ b/bin/varnishd/cache/cache_backend_tcp.c
@@ -382,7 +382,9 @@ VBT_Get(struct tcp_pool *tp, double tmo, const struct backend *be,
 		Lck_Lock(&tp->mtx);
 		tp->n_used--;		// Nope, didn't work after all.
 		Lck_Unlock(&tp->mtx);
-	}
+	} else
+		VSC_C_main->backend_conn++;
+
 	return (vbc);
 }
 



More information about the varnish-commit mailing list