diff options
author | dg <dg@FreeBSD.org> | 1995-09-13 05:35:49 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-09-13 05:35:49 +0000 |
commit | 7a80a4be51b01e07c37ffe3976bc4adfab0ff03d (patch) | |
tree | f4d74fbdcdbb8bf8127b4c84543835799ff23d81 | |
parent | 8925d45122fe83df78d676a53306b0b2faade050 (diff) | |
download | FreeBSD-src-7a80a4be51b01e07c37ffe3976bc4adfab0ff03d.zip FreeBSD-src-7a80a4be51b01e07c37ffe3976bc4adfab0ff03d.tar.gz |
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.
-rw-r--r-- | sys/sys/socket.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/socket.h b/sys/sys/socket.h index 05f3fb2..6bbb8fc 100644 --- a/sys/sys/socket.h +++ b/sys/sys/socket.h @@ -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. |