diff options
author | Perttu Ahola <celeron55@gmail.com> | 2013-08-04 08:17:07 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2013-08-04 10:44:37 +0300 |
commit | e6687be4933e5115d31ade014300648051af5047 (patch) | |
tree | 320a1bb7ecf718f604ffe386b1d40d547c41d3e3 /src/connection.h | |
parent | 8831669505905dd9cd415711063f705d8e7ce02c (diff) | |
download | dragonfireclient-e6687be4933e5115d31ade014300648051af5047.tar.xz |
Fix server getting completely choked up on even a little of DoS
* If client count is unbearable, immediately delete denied clients
* Re-prioritize the checking order of things about incoming clients
* Remove a huge CPU-wasting exception in ReliablePacketBuffer
Diffstat (limited to 'src/connection.h')
-rw-r--r-- | src/connection.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection.h b/src/connection.h index f5cddcbf4..e68557ccd 100644 --- a/src/connection.h +++ b/src/connection.h @@ -281,7 +281,7 @@ public: u32 size(); RPBSearchResult findPacket(u16 seqnum); RPBSearchResult notFound(); - u16 getFirstSeqnum(); + bool getFirstSeqnum(u16 *result); BufferedPacket popFirst(); BufferedPacket popSeqnum(u16 seqnum); void insert(BufferedPacket &p); |