lkml.org 
[lkml]   [1997]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: pre-2.0.30 SOMAXCONN Value
Date
> Running 2.0.pre-30, I tried increasing SOMAXCONN (linux/socket.h) to 256
> and 512 in include/linux/socket.h, as I was running out of sockets at the
> default 128. That caused the network to hang; I could not get the Web
> server to respond. Going back to 128 got it all working.

I bet.

> Should it be possible to increase SOMAXCONN, or does that interact
> with/break the socket hash stuff? It looks like there are a few hardcoded
> 128 values in the pre-2.0.30 patch, but I'm not sure what they do.


Because the backlog queue is a signed char. If you change that (and test you
got all the cases), your machine should be happy with a 512 SOMAXCONN


\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.033 / U:0.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site