]> err.no Git - varnish/commitdiff
Retry client connects once.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 31 Jul 2008 10:24:19 +0000 (10:24 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 31 Jul 2008 10:24:19 +0000 (10:24 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3042 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/vtc_client.c

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