From cb709283984ad8add81fb61e48089a98080aeed8 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 26 Sep 2006 13:10:36 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_acceptor.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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); -- 2.39.5