diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-04-19 17:07:10 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-04-19 17:07:10 +0200 |
commit | 92da062c028f4a6546a938631e7574e324040274 (patch) | |
tree | 19227098e63e1b1e6010cb7b21e18afb3ac5839f /src/users.cpp | |
parent | 89a8e22b6698c3f4ee1d32e0e864c293cd9335d0 (diff) |
Immediately stop processing whenever we detect and handle a RecvQ overrun
Thanks to @SimosNap for the report and cooperation
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp index adfa7642c..dbc3ea444 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -455,6 +455,7 @@ void UserIOHandler::OnDataReady() ServerInstance->Users->QuitUser(user, "RecvQ exceeded"); ServerInstance->SNO->WriteToSnoMask('a', "User %s RecvQ of %lu exceeds connect class maximum of %lu", user->nick.c_str(), (unsigned long)recvq.length(), user->MyClass->GetRecvqMax()); + return; } unsigned long sendqmax = ULONG_MAX; if (!user->HasPrivPermission("users/flood/increased-buffers")) |