From: phk Date: Thu, 31 Jul 2008 10:24:19 +0000 (+0000) Subject: Retry client connects once. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cef2644a5d1c941f17a3e1b7d3f69c1c08a225b6;p=varnish Retry client connects once. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3042 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/vtc_client.c b/varnish-cache/bin/varnishtest/vtc_client.c index c0a21345..89ccb2c3 100644 --- a/varnish-cache/bin/varnishtest/vtc_client.c +++ b/varnish-cache/bin/varnishtest/vtc_client.c @@ -78,6 +78,10 @@ client_thread(void *priv) 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);