From a495d2228146f109654fa1055f8fca9930ac85bd Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 6 Oct 2006 21:08:13 +0000 Subject: More debug git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5439 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/users.cpp b/src/users.cpp index 263c68a94..c5199cb30 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -938,14 +938,18 @@ void userrec::AddClient(InspIRCd* Instance, int socket, int port, bool iscached, New->sendqmax = class_sqmax; New->recvqmax = class_rqmax; + Instance->Log(DEBUG,"Push back to local users."); Instance->local_users.push_back(New); + Instance->Log(DEBUG,"Check softlimit."); if ((Instance->local_users.size() > Instance->Config->SoftLimit) || (Instance->local_users.size() >= MAXCLIENTS)) { userrec::QuitUser(Instance, New,"No more connections allowed"); return; } + Instance->Log(DEBUG,"Softlimit passed."); + /* * XXX - * this is done as a safety check to keep the file descriptors within range of fd_ref_table. @@ -962,6 +966,8 @@ void userrec::AddClient(InspIRCd* Instance, int socket, int port, bool iscached, return; } + Instance->Log(DEBUG,"socket < MAX_DESCRIPTORS passed."); + ELine* e = Instance->XLines->matches_exception(New); if (!e) { -- cgit v1.2.3