svn commit: r245696 - head/usr.sbin/inetd
Pawel Jakub Dawidek
pjd at FreeBSD.org
Mon Jan 21 08:49:37 UTC 2013
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)?
> Submitted by: Andrey Ignatov <rdna at rdna.ru>
> MFC after: 2 weeks
>
> Modified:
> head/usr.sbin/inetd/inetd.c
>
> Modified: head/usr.sbin/inetd/inetd.c
> ==============================================================================
> --- head/usr.sbin/inetd/inetd.c Sun Jan 20 17:48:56 2013 (r245695)
> +++ head/usr.sbin/inetd/inetd.c Sun Jan 20 19:44:33 2013 (r245696)
> @@ -1387,7 +1387,7 @@ setsockopt(fd, SOL_SOCKET, opt, (char *)
> }
> }
> if (sep->se_socktype == SOCK_STREAM)
> - listen(sep->se_fd, 64);
> + listen(sep->se_fd, -1);
> enable(sep);
> if (debug) {
> warnx("registered %s on %d",
--
Pawel Jakub Dawidek http://www.wheelsystems.com
FreeBSD committer http://www.FreeBSD.org
Am I Evil? Yes, I Am! http://tupytaj.pl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20130121/3508ddd3/attachment.sig>
More information about the svn-src-all
mailing list