Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jan 2013 19:44:34 +0000 (UTC)
From:      Andrey Zonov <zont@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r245696 - head/usr.sbin/inetd
Message-ID:  <201301201944.r0KJiY0C094120@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.
  
  Submitted by:	Andrey Ignatov <rdna@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",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301201944.r0KJiY0C094120>