diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-17 20:54:13 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-17 20:54:13 +0000 |
commit | 588b93a2bad8f9326a67e87c28778cf32d11122c (patch) | |
tree | 2a47833ccec0cf353d5a24c7d7eb31676fc36eff /src/servers.cpp | |
parent | 0ff5bafa32e76a447f4a1315177de0ee12111d4e (diff) |
Added configurable SOMAXCONN size
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1419 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/servers.cpp')
-rw-r--r-- | src/servers.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/servers.cpp b/src/servers.cpp index 56e0d0c41..440a01e38 100644 --- a/src/servers.cpp +++ b/src/servers.cpp @@ -35,6 +35,7 @@ using namespace std; #include "connection.h" extern time_t TIME; +extern int MaxConn; std::deque<std::string> xsums; @@ -128,7 +129,7 @@ bool serverrec::CreateListener(char* newhost, int p) this->port = p; - listen(this->fd,32); + listen(this->fd, MaxConn); return true; } |