You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Randy Terbush <ra...@zyzzyva.com> on 1996/04/19 14:47:56 UTC
Re: socket failed
> I also get tons of socket error: accept failed errors. The lastest
> snapshots change the error from something like:
>
> [Fri Apr 12 12:20:46 1996] socket error: accept failed
>
> to something like:
>
> [Thu Apr 18 22:29:15 1996] accept: Connection reset by peer
> [Thu Apr 18 22:29:15 1996] - socket error: accept failed
>
> We got just under 7000 of those on the 18th, and just under 375000
> lines in the access_logs.
>
> The ratio was higher earlier in the week, but has settled back down to
> the normal 1 to 2 percent.
>
> The server and kernel are both kept nearly current on that box. (The
> 2nd half of the 18th I ran 1.3.90 and the 19960418130013 CVS snapshot,
> the first half had a 4 or 5 day old.)
Are you also on Linux? What is your listen queue (SOMAXCONN) set to?
Re: socket failed
Posted by "James H. Cloos Jr." <cl...@jhcloos.com>.
JimC> (The 2nd half of the 18th I ran 1.3.90 and the 19960418130013
JimC> CVS snapshot, the first half had a 4 or 5 day old snapshot.)
Randy> Are you also on Linux? What is your listen queue (SOMAXCONN)
Randy> set to?
I set SOMAXCONN on that box to 255. The kernel seems to use a long to
hold it, but someplace it still get's truncated to a char. (Ie,
setting it to 1024 really bites! :)
And, yes, leaving it at the default 128 does increase the number of
accept failed messages.
-JimC
--
James H. Cloos, Jr. <URL:http://www.jhcloos.com/~cloos/>
cloos@jhcloos.com Work: cloos@io.com
LPF,Usenix,SAGE,ISOC,ACLU