sysctl kern.ipc.somaxconn limit 65535 why?

Xin LI delphij at gmail.com
Wed Jan 4 23:02:00 UTC 2012


Hi,

On Wed, Jan 4, 2012 at 2:50 PM, Dan The Man <dan at sunsaturn.com> wrote:
[...]
> How about a sensible solution? I think everyone has been making valid points
> here, about sensible limits for all programs on system and per application
> limit changes.
>
> How about changing the hard limit high, and an application can make the soft
> limit higher as it sees fit, its a win win, like ulimit does with openfiles
> and such.

Looking at the code, it seems that there is no reason we can't make
this u_short be u_int and just change the limit to U_INTMAX.  The
biggest problem that one would hit here is that changes the binary
interface of both struct xsocket and struct socket consumers.

Cheers,
-- 
Xin LI <delphij at delphij.net> https://www.delphij.net/
FreeBSD - The Power to Serve! Live free or die


More information about the freebsd-current mailing list