]> err.no Git - varnish/commitdiff
Timeout pipe connections after 600 seconds.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 7 Aug 2006 10:46:59 +0000 (10:46 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 7 Aug 2006 10:46:59 +0000 (10:46 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@711 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_pipe.c

index c4b74e7c1e5582f1025bc3742067a5a81887b9bb..d95ae47233b795ef7833664b4cae307f01ef190a 100644 (file)
@@ -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)