patch-2.4.25 linux-2.4.25/net/socket.c

Next file: linux-2.4.25/scripts/ver_linux
Previous file: linux-2.4.25/net/sctp/transport.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/net/socket.c linux-2.4.25/net/socket.c
@@ -1016,14 +1016,16 @@
  *	ready for listening.
  */
 
+int sysctl_somaxconn = SOMAXCONN;
+
 asmlinkage long sys_listen(int fd, int backlog)
 {
 	struct socket *sock;
 	int err;
 	
 	if ((sock = sockfd_lookup(fd, &err)) != NULL) {
-		if ((unsigned) backlog > SOMAXCONN)
-			backlog = SOMAXCONN;
+		if ((unsigned) backlog > sysctl_somaxconn)
+			backlog = sysctl_somaxconn;
 		err=sock->ops->listen(sock, backlog);
 		sockfd_put(sock);
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)