diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-17 02:51:23 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-17 02:51:23 +0000 |
commit | b378309829e8e4e823f80aec530f358a48570de4 (patch) | |
tree | 0b9e87af8c1b278f702b88500ac0aacb4a2e6a0b | |
parent | 91b07b8c367faef73225074102fe13616789440a (diff) |
Changed from SOMAXCONN to 32
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1410 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/connection.cpp | 2 | ||||
-rw-r--r-- | src/inspircd.cpp | 4 | ||||
-rw-r--r-- | src/inspircd_io.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/connection.cpp b/src/connection.cpp index 26d011914..c902c2d22 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -133,7 +133,7 @@ bool connection::CreateListener(char* newhost, int p) this->port = p; - listen(this->fd,SOMAXCONN); + listen(this->fd,32); return true; } diff --git a/src/inspircd.cpp b/src/inspircd.cpp index ec47b9e16..ce97bc201 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -2704,7 +2704,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, SOMAXCONN, NULL); + EV_SET(&ke, openSockfd[count], EVFILT_READ, EV_ADD, 0, 32, NULL); int i = kevent(lkq, &ke, 1, 0, 0, NULL); if (i == -1) { @@ -2719,7 +2719,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, SOMAXCONN, NULL); + EV_SET(&ke, me[t]->fd, EVFILT_READ, EV_ADD, 0, 32, NULL); int i = kevent(skq, &ke, 1, 0, 0, NULL); if (i == -1) { diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index d0535c72c..e5a0bdcac 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -637,7 +637,7 @@ int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server } else { - listen(sockfd,SOMAXCONN); + listen(sockfd,32); return(TRUE); } } |