r1125 - trunk/varnish-cache/bin/varnishd
des at projects.linpro.no
des at projects.linpro.no
Tue Sep 26 15:10:36 CEST 2006
Author: des
Date: 2006-09-26 15:10:36 +0200 (Tue, 26 Sep 2006)
New Revision: 1125
Modified:
trunk/varnish-cache/bin/varnishd/cache_acceptor.c
Log:
Ignore accept() failures if errno is EAGAIN - this is not likely to happen
on a production server, but it will on a test rig, and it may confuse and
alarm the admin.
Modified: trunk/varnish-cache/bin/varnishd/cache_acceptor.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_acceptor.c 2006-09-24 17:59:00 UTC (rev 1124)
+++ trunk/varnish-cache/bin/varnishd/cache_acceptor.c 2006-09-26 13:10:36 UTC (rev 1125)
@@ -157,9 +157,11 @@
l = sizeof addr;
i = accept(heritage.socket, addr, &l);
if (i < 0) {
- VSL(SLT_Debug, heritage.socket,
- "Accept failed errno=%d", errno);
- /* XXX: stats ? */
+ if (errno != EAGAIN) {
+ VSL(SLT_Debug, heritage.socket,
+ "Accept failed errno=%d", errno);
+ /* XXX: stats ? */
+ }
continue;
}
sp = SES_New(addr, l);
More information about the varnish-commit
mailing list