Increased SOMAXCONN from 5 to 32. 5 was too small a value for just about
any reasonably busy machine, and by any measure is a lousy "max" value. 32 was chosen after a careful analysis of typical listen queue depths on several busy Internet servers (both web and ftp). I also intend to add a statistics counter for dropped connection requests due to the limit being exceeded.
This commit is contained in:
parent
e6df7bbb57
commit
a89f7290be
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)socket.h 8.4 (Berkeley) 2/21/94
|
||||
* $Id: socket.h,v 1.5 1995/01/05 19:51:51 se Exp $
|
||||
* $Id: socket.h,v 1.6 1995/02/07 02:01:57 wollman Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_SOCKET_H_
|
||||
@ -241,7 +241,7 @@ struct sockproto {
|
||||
/*
|
||||
* Maximum queue length specifiable by listen.
|
||||
*/
|
||||
#define SOMAXCONN 5
|
||||
#define SOMAXCONN 32
|
||||
|
||||
/*
|
||||
* Message header for recvmsg and sendmsg calls.
|
||||
|
Loading…
x
Reference in New Issue
Block a user