cvs commit: src/sys/kern uipc_socket.c
Gleb Smirnoff
glebius at FreeBSD.org
Sat Feb 19 14:17:13 GMT 2005
glebius 2005-02-19 14:17:12 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_5)
sys/kern uipc_socket.c
Log:
MFC 1.226, with one change: use SHRT_MAX instead of USHRT_MAX, since
sys/socketvar.h rev. 1.136 is not merged due to API freeze.
- Add SYSCTL_PROC() around somaxconn, not accepting values < 1 or > SHRT_MAX.
Before this change setting somaxconn to smth above 32767 and calling
listen(fd, -1) lead to a socket, which doesn't accept connections at all.
Reviewed by: rwatson
Reported by: Igor Sysoev
Revision Changes Path
1.208.2.10 +23 -2 src/sys/kern/uipc_socket.c
More information about the cvs-src
mailing list