From: phk Date: Mon, 7 Aug 2006 10:46:59 +0000 (+0000) Subject: Timeout pipe connections after 600 seconds. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfdf3616265f7ca9a2970d5aef43980e5535324d;p=varnish Timeout pipe connections after 600 seconds. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@711 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_pipe.c b/varnish-cache/bin/varnishd/cache_pipe.c index c4b74e7c..d95ae472 100644 --- a/varnish-cache/bin/varnishd/cache_pipe.c +++ b/varnish-cache/bin/varnishd/cache_pipe.c @@ -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)