From: des Date: Tue, 26 Sep 2006 13:10:36 +0000 (+0000) Subject: Ignore accept() failures if errno is EAGAIN - this is not likely to happen X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb709283984ad8add81fb61e48089a98080aeed8;p=varnish 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. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1125 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_acceptor.c b/varnish-cache/bin/varnishd/cache_acceptor.c index e554047f..73d5ab5c 100644 --- a/varnish-cache/bin/varnishd/cache_acceptor.c +++ b/varnish-cache/bin/varnishd/cache_acceptor.c @@ -157,9 +157,11 @@ vca_acct(void *arg) 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);