r3042 - trunk/varnish-cache/bin/varnishtest
phk at projects.linpro.no
phk at projects.linpro.no
Thu Jul 31 12:24:19 CEST 2008
Author: phk
Date: 2008-07-31 12:24:19 +0200 (Thu, 31 Jul 2008)
New Revision: 3042
Modified:
trunk/varnish-cache/bin/varnishtest/vtc_client.c
Log:
Retry client connects once.
Modified: trunk/varnish-cache/bin/varnishtest/vtc_client.c
===================================================================
--- trunk/varnish-cache/bin/varnishtest/vtc_client.c 2008-07-31 10:19:44 UTC (rev 3041)
+++ trunk/varnish-cache/bin/varnishtest/vtc_client.c 2008-07-31 10:24:19 UTC (rev 3042)
@@ -78,6 +78,10 @@
vtc_log(vl, 2, "Started");
vtc_log(vl, 3, "Connect to %s", c->connect);
fd = VSS_open(c->connect);
+ if (fd < 0) {
+ sleep(1);
+ fd = VSS_open(c->connect);
+ }
assert(fd >= 0);
vtc_log(vl, 3, "Connected to %s fd is %d", c->connect, fd);
http_process(vl, c->spec, fd, 1);
More information about the varnish-commit
mailing list