Re: sysctl kern.ipc.somaxconn limit 65535 why?

From: Xin LI <delphij_at_gmail.com>
Date: Wed, 4 Jan 2012 15:01:57 -0800
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
Received on Wed Jan 04 2012 - 22:01:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:22 UTC