]> err.no Git - varnish/commitdiff
Ok, 3 retries then...
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 31 Jul 2008 10:35:35 +0000 (10:35 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 31 Jul 2008 10:35:35 +0000 (10:35 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3043 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/vtc_client.c

index 89ccb2c310dffe54a350035ec9a69ed1708a1eeb..8c0a19c654bb886f8a6a66075b67f949a4b7abec 100644 (file)
@@ -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);
        }