From a207bbf5aa603928db5021a3aa8a1f7a68263965 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 31 Jul 2008 10:35:35 +0000 Subject: [PATCH] Ok, 3 retries then... git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3043 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishtest/vtc_client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishtest/vtc_client.c b/varnish-cache/bin/varnishtest/vtc_client.c index 89ccb2c3..8c0a19c6 100644 --- a/varnish-cache/bin/varnishtest/vtc_client.c +++ b/varnish-cache/bin/varnishtest/vtc_client.c @@ -69,6 +69,7 @@ client_thread(void *priv) struct client *c; struct vtclog *vl; int fd = -1; + int i; CAST_OBJ_NOTNULL(c, priv, CLIENT_MAGIC); AN(c->connect); @@ -78,7 +79,7 @@ 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) { + for (i = 0; fd < 0 && i < 3; i++) { sleep(1); fd = VSS_open(c->connect); } -- 2.39.5