Fix server getting completely choked up on even a little of DoS
authorPerttu Ahola <celeron55@gmail.com>
Sun, 4 Aug 2013 05:17:07 +0000 (08:17 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 4 Aug 2013 07:44:37 +0000 (10:44 +0300)
commite6687be4933e5115d31ade014300648051af5047
tree320a1bb7ecf718f604ffe386b1d40d547c41d3e3
parent8831669505905dd9cd415711063f705d8e7ce02c
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
src/connection.cpp
src/connection.h
src/server.cpp
src/server.h