r711 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Mon Aug 7 12:46:59 CEST 2006
Author: phk
Date: 2006-08-07 12:46:59 +0200 (Mon, 07 Aug 2006)
New Revision: 711
Modified:
trunk/varnish-cache/bin/varnishd/cache_pipe.c
Log:
Timeout pipe connections after 600 seconds.
Modified: trunk/varnish-cache/bin/varnishd/cache_pipe.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_pipe.c 2006-08-07 10:40:19 UTC (rev 710)
+++ trunk/varnish-cache/bin/varnishd/cache_pipe.c 2006-08-07 10:46:59 UTC (rev 711)
@@ -78,8 +78,9 @@
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)
More information about the varnish-commit
mailing list