From 3b9fe8c5bfdfa57806994180bb9b8797cefb8279 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 16 May 2005 16:26:10 +0000 Subject: Increased listen backlog from 5 to use SOMAXCONN, system defined constant maximim connections as recommended by GeniusDex git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1407 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 4464be755..a0cfb008d 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -2645,7 +2645,7 @@ int InspIRCd(char** argv, int argc) { struct kevent ke; log(DEBUG,"kqueue: Add listening socket to events, kq=%d socket=%d",lkq,openSockfd[count]); - EV_SET(&ke, openSockfd[count], EVFILT_READ, EV_ADD, 0, 5, NULL); + EV_SET(&ke, openSockfd[count], EVFILT_READ, EV_ADD, 0, SOMAXCONN, NULL); int i = kevent(lkq, &ke, 1, 0, 0, NULL); if (i == -1) { @@ -2659,7 +2659,7 @@ int InspIRCd(char** argv, int argc) if (me[t]) { log(DEBUG,"kqueue: Add listening SERVER socket to events, kq=%d socket=%d",skq,me[t]->fd); - EV_SET(&ke, me[t]->fd, EVFILT_READ, EV_ADD, 0, 5, NULL); + EV_SET(&ke, me[t]->fd, EVFILT_READ, EV_ADD, 0, SOMAXCONN, NULL); int i = kevent(skq, &ke, 1, 0, 0, NULL); if (i == -1) { -- cgit v1.2.3