|
@@ -0,0 +1,38 @@
+--- varnish-2.0.4/bin/varnishd/cache_backend.c.orig 2009-06-04 19:46:54.000000000 +0200
++++ varnish-2.0.4/bin/varnishd/cache_backend.c 2009-06-04 19:48:48.000000000 +0200
+@@ -99,9 +99,9 @@
+ if (bp->connect_timeout > 10e-3)
+ tmo = (int)(bp->connect_timeout * 1000);
+
+- if (tmo > 0)
+- i = TCP_connect(s, sa, salen, tmo);
+- else
++// if (tmo > 0)
++// i = TCP_connect(s, sa, salen, tmo);
++// else
+ i = connect(s, sa, salen);
+
+ if (i != 0) {
+@@ -311,14 +311,14 @@
+ Lck_Unlock(&bp->mtx);
+ if (vc == NULL)
+ break;
+- if (VBE_CheckFd(vc->fd)) {
+- /* XXX locking of stats */
+- VSL_stats->backend_reuse += 1;
+- VSL_stats->backend_conn++;
+- WSP(sp, SLT_Backend, "%d %s %s",
+- vc->fd, sp->director->vcl_name, bp->vcl_name);
+- return (vc);
+- }
++// if (VBE_CheckFd(vc->fd)) {
++// /* XXX locking of stats */
++// VSL_stats->backend_reuse += 1;
++// VSL_stats->backend_conn++;
++// WSP(sp, SLT_Backend, "%d %s %s",
++// vc->fd, sp->director->vcl_name, bp->vcl_name);
++// return (vc);
++// }
+ sp->vbe = vc;
+ VBE_ClosedFd(sp);
+ }
|