Commit 107250d3 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Retry client connects once.



git-svn-id: http://www.varnish-cache.org/svn/trunk@3042 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 57b18414
......@@ -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);
......
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