httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <>
Subject Re: SOMAXCONN and FreeBSD
Date Sun, 24 May 1998 23:26:25 GMT
You know, linux supports only a max of 128 without tweaking the kernel
sources (they use an unsigned char, but do some arithmetic on it which
could overflow if greater than 128, and ANSI doesn't guarantee the
promotion to int that gcc does).  Very few people change this on linux... 
I doubt it's actually even necessary these days.  5 is way to small, but
128 seems to be sufficient (even on fast lans with many clients).  i.e. I
don't think it's a biggie. 


On Fri, 22 May 1998, Jim Jagielski wrote:

> You know, I never really gave it much thought... I just took it
> on faith that adding the options "SOMAXCONN=256" line actually
> made the listen queue 256. I just ignored the warnings when
> building a new kernel. And then I actually _looked_ at the
> warnings... It's saying that the entry in sys/socket.h is
> _overruling_ the initialization one! That is, it's not being
> reset to 256, but instead the value of 256 is being changed
> to 128 !!
> -- 
> ===========================================================================
>    Jim Jagielski   |||   |||
>             "That's no ordinary rabbit... that's the most foul,
>             cruel and bad-tempered rodent you ever laid eyes on"

View raw message