diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-06 21:08:13 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-06 21:08:13 +0000 |
commit | a495d2228146f109654fa1055f8fca9930ac85bd (patch) | |
tree | ac2dac55a9f241e379da7c025adc745a93660829 /src | |
parent | 8a2bcec0d9a2e7040dc025ab8246df2748185630 (diff) |
More debug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5439 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-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) { |