Commit a7f2f1d6 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Ok, 3 retries then...



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3043 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 90f63de8
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment