Commit f151e5c3 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

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: http://www.varnish-cache.org/svn/trunk@1125 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 27977445
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment