diff options
| author | 2008-02-11 22:09:24 +0000 | |
|---|---|---|
| committer | 2008-02-11 22:09:24 +0000 | |
| commit | a348bf1768b4de738a6f80639819e46e5de0b92b (patch) | |
| tree | 9cae6a5782e2a3a48aa5563c265767e17aa1af69 /src/userprocess.cpp | |
| parent | Missed a bit. (diff) | |
Backport reworked culllist from 1.2: drastically improves performance when quitting a lot of users (e.g. on netsplit). I was originally not going to do this for 1.1, but it seems to perform well, and I can't break it under clone flooding - so in it goes. QA: please test this with lots of activity (connecting, disconnecting, ping timeouts, socket errors, anything you can throw at it)
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8905 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/userprocess.cpp')
| -rw-r--r-- | src/userprocess.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 4d62edb64..9a0c017d7 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -223,7 +223,6 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME) */ if ((TIME > curr->timeout) && (curr->registered != REG_ALL)) { - curr->muted = true; userrec::QuitUser(this, curr, "Registration timeout"); continue; } @@ -276,7 +275,6 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME) time_t time = this->Time(false) - (curr->nping - curr->pingmax); char message[MAXBUF]; snprintf(message, MAXBUF, "Ping timeout: %ld second%s", (long)time, time > 1 ? "s" : ""); - curr->muted = true; curr->lastping = 1; curr->nping = TIME+curr->pingmax; userrec::QuitUser(this, curr, message); |
