On 1/21/13 12:49 PM, Pawel Jakub Dawidek wrote: > On Sun, Jan 20, 2013 at 07:44:34PM +0000, Andrey Zonov wrote: >> Author: zont >> Date: Sun Jan 20 19:44:33 2013 >> New Revision: 245696 >> URL: http://svnweb.freebsd.org/changeset/base/245696 >> >> Log: >> - Force inetd to have listen queue size to be set to the value of >> kern.ipc.somaxconn instead of hardcoded value 64. > > Hmm, I didn't know -1 can be provided to use default limit. > Would you mind documenting it in listen(2)? >
It's already documented there:
The sysctl(3) MIB variable kern.ipc.soacceptqueue specifies a hard
limit
on backlog; if a value greater than kern.ipc.soacceptqueue or less than
zero is specified, backlog is silently forced to
kern.ipc.soacceptqueue.
Note that kern.ipc.soacceptqueue is the same as kern.ipc.somaxconn.
--
Andrey Zonov
signature.asc
Description: OpenPGP digital signature
