Feature #189
Improve rcon rate limiting
| Status: | New | Start date: | 02/07/2012 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - |
Description
Currently, how a large amount of commands is handled with rcon is
- The first 0<=x<=10 commands are sent immediately
- Each remaining command is sent with a delay
- Commands are only sent at the start of the read loop
- As many queued commands as possible are sent in a single packet
"Sent: blah" becomes spammy when more than one command is sent at once, so this changes it to "Sent x commands in y characters" when multiple commands are sent simultaneously
This is necessary for future improvements I'm planning for CommandQueue
History
Updated by msk 3 months ago
I figured I should explain this better: currently each command is sent in its own packet. By sending multiple commands in each packet, this more closely matches the leaky bucket implementation in the server, to allow an arbitrary number of commands in quick succession (up to a certain cumulative length). This also generally empties the send queue faster