From 368bd87849c4a2f2a7b253c353dfb4100b29c7c9 Mon Sep 17 00:00:00 2001 From: zont Date: Sun, 20 Jan 2013 19:44:33 +0000 Subject: - 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 MFC after: 2 weeks --- usr.sbin/inetd/inetd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/inetd') diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index 6b28764..eebcfea 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -1387,7 +1387,7 @@ setsockopt(fd, SOL_SOCKET, opt, (char *)&on, sizeof (on)) } } 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", -- cgit v1.1