mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
FIX(server): Actually use the settings provided pluginmessagelimit and -burst
This commit is contained in:
parent
25ead08d47
commit
e46cbc1921
@ -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;
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user