Commit 2d93ad89 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Be more stringent about our timeout: fail even if we did get a

socket, but took to.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3492 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent cfe8a7c8
......@@ -157,6 +157,11 @@ vbp_poke(struct vbp_target *vt)
/* Got no connection: failed */
return;
}
if (tmo <= 0) {
/* Spent too long time getting it */
TCP_close(&s);
return;
}
/* Send the request */
i = write(s, vt->req, vt->req_len);
......
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