On Wed, Oct 21, 2009 at 10:27:23AM -0700, David Birdsong wrote:
> On Wed, Oct 21, 2009 at 4:31 AM, John Lauro <[email protected]> 
> wrote:
> > You could bump your range up.  It might help if you have a high connection
> > rate and not just a high number of connections.
> >
> i dont have a high connection rate.  my connection over localhost is
> just intended to mimic user behavior.  i
> 
> it boils down to is it the os, or lighttpd or both?
> 
> can a backed up listen queue delay a tcp handshake?  my guess would be
> that the OS would start sending RST's when a server isn't clearing out
> it's listen queue.

when a backlog is full, the system simply drops the SYNs, that's what
allows the client to try again. There are still applications around
which do listen(fd, 5) because that was an example in many school
manuals. That limits the backlog to 5 entries ...

Also, check your somaxconn sysctl. It's also a limit on the SYN
backlog size, and that one is generally set to 128 by default.
You need to restart the application bound to the listening port
when you change somaxconn or tcp_max_syn_backlog for them to take
effect.

Hoping this helps,
Willy


Reply via email to