sysctl kern.ipc.somaxconn limit 65535 why?

Xin Li delphij at delphij.net
Wed Oct 3 20:05:54 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

On 10/03/12 11:45, freebsd at chrysalisnet.org wrote:
> Hi everyone.
> 
> Actually 65k sockets is incredibly easy to reach.

No, this is not kern.ipc.maxsockets.

kern.ipc.somaxconn is for "baclkog" and not the maximum connections.
Accumulating 64K of pending connection request without giving them
some love (e.g. accept()) means there is something wrong.

Cheers,
- -- 
Xin LI <delphij at delphij.net>    https://www.delphij.net/
FreeBSD - The Power to Serve!           Live free or die
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iQEcBAEBCAAGBQJQbJqgAAoJEG80Jeu8UPuz+x0H/2y+aJC1/yotlnjZcjzAmhm2
WpI8l2WNO7oezUH9t6z8SI543Ky0mLjq52oVJTlBWyXuFkGNQdtKJgrbm5hLAiCz
FPojm0p/y3T/ujosunPQl0e/yws6odbEdpGrjSCGJ0VXPQrsWj7NqAJNcDn5hW6m
2wYDkkY9gIxgdfLh8GINvEGO1uY0fyKaPZesepzUsAOOSj/fVdvRK7gSKqaHwDdW
u8VCvfrgD1I1rKj57ymVsf/lpIVPDAv020rJzDnNWWM1dekqzvM7xZ5HiZgkdCca
rTZQGJM3wujuHrjkHP3U5LDMflRWdOHzU236m7vw6jR7ll1xU5GljeNuwp95wFo=
=8tip
-----END PGP SIGNATURE-----


More information about the freebsd-current mailing list