httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@worldgate.com>
Subject Re: SOMAXCONN and FreeBSD
Date Sun, 24 May 1998 22:49:33 GMT
On Sun, 24 May 1998, Dean Gaudet wrote:

> 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. 

This depends on how the kernel implements SYN flood protection.  

> 
> Dean
> 
> 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   |||   jim@jaguNET.com   |||   http://www.jaguNET.com/
> >             "That's no ordinary rabbit... that's the most foul,
> >             cruel and bad-tempered rodent you ever laid eyes on"
> > 
> 


Mime
View raw message