]> err.no Git - varnish/commitdiff
Ignore accept() failures if errno is EAGAIN - this is not likely to happen
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 26 Sep 2006 13:10:36 +0000 (13:10 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 26 Sep 2006 13:10:36 +0000 (13:10 +0000)
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

index e554047f95c51c40153370b0c8cb02428440eba8..73d5ab5c630df9d1e2dd89fbd71b73970cc9c4a1 100644 (file)
@@ -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);