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

Timeout pipe connections after 600 seconds.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@711 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent cd0650d7
......@@ -78,8 +78,9 @@ PipeSession(struct sess *sp)
while (fds[0].events || fds[1].events) {
fds[0].revents = 0;
fds[1].revents = 0;
i = poll(fds, 2, INFTIM);
assert(i > 0);
i = poll(fds, 2, 600000);
if (i != 1)
break;
if (fds[0].revents)
rdf(fds, 0);
if (fds[1].revents)
......
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