diff options
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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) { |