From cef2644a5d1c941f17a3e1b7d3f69c1c08a225b6 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 31 Jul 2008 10:24:19 +0000 Subject: [PATCH] Retry client connects once. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3042 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishtest/vtc_client.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.39.5