From 7a80a4be51b01e07c37ffe3976bc4adfab0ff03d Mon Sep 17 00:00:00 2001 From: dg Date: Wed, 13 Sep 1995 05:35:49 +0000 Subject: 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. --- sys/sys/socket.h | 4 ++-- 1 file 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. -- cgit v1.1