mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
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
This commit is contained in:
parent
8831669505
commit
e6687be493
4 changed files with 229 additions and 168 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue