Messages in this thread | | | From | (Alan Cox) | Subject | Re: pre-2.0.30 SOMAXCONN Value | Date | Sat, 29 Mar 1997 12:16:50 +0000 (GMT) |
| |
> 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
| |