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
- Lines: 19
- Date:
2004-02-18 05:36:32.000000000 -0800
- Orig file:
linux-2.4.24/net/socket.c
- Orig date:
2003-11-28 10:26:21.000000000 -0800
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)