FIX(server): Actually use the settings provided pluginmessagelimit and -burst

This commit is contained in:
Green Sky 2023-04-26 13:34:27 +02:00
parent 25ead08d47
commit e46cbc1921
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
ServerUser::ServerUser(Server *p, QSslSocket *socket)
: Connection(p, socket), User(), s(nullptr), leakyBucket(p->iMessageLimit, p->iMessageBurst),
m_pluginMessageBucket(5, 20) {
m_pluginMessageBucket(p->iPluginMessageLimit, p->iPluginMessageBurst) {
sState = ServerUser::Connected;
m_clientType = ClientType::REGULAR;
sUdpSocket = INVALID_SOCKET;

View File

@ -76,7 +76,7 @@ class Server;
class LeakyBucket {
private:
/// The amount of tokens that are drained per second.
/// (The sze of the whole in the bucket)
/// (The size of the whole in the bucket)
unsigned int m_tokensPerSec;
/// The maximum amount of tokens that may be encountered.
/// (The capacity of the bucket)