Commit Graph

17 Commits

Author SHA1 Message Date
Davide Beatrici
b427333257 Auto-update LICENSE.header in source files 2019-01-25 04:56:19 +01:00
MadMaurice
73a0b2f888 Make Rate limiter configurable.
This adds messagelimit and messageburst to the configuration file murmur.ini as
well as the ability to set these live.

Though adjusting these live is entirely possible, they only take effect for new connections.
2018-09-08 01:58:23 +02:00
MadMaurice
4761ca41ab Lower bucket params
Use 1 tokens per second and 5 burst instead of 4 tokens per second and 30 burst
2018-08-31 00:56:46 +02:00
MadMaurice
0daec57f5c Prevent instability and crash due to message flood
This patch adds a rate limiting to selected patches. The underlying rate limiter
used is the Leaky-Bucket algorithm. It allows for a burst of messages, but
limits them after a specified amount of messages within a time frame.
2018-08-30 19:53:05 +02:00
Mikkel Krautz
f6ba3a52bf Auto-update LICENSE.header in source files. 2018-01-01 23:05:37 +01:00
Mikkel Krautz
91ebb8b0b5 Update tree copyrights to 2017. 2017-01-08 21:05:57 +01:00
Mikkel Krautz
cb446f1808 Server: convert bUdp to use QAtomicInt for proper synchronization. 2016-06-24 00:03:12 +02:00
Mikkel Krautz
9dfca42ab9 Add Mutex internal to BanwidthRecord. 2016-06-24 00:03:12 +02:00
Mikkel Krautz
54c28d3ee1 src/murmur: update to use LICENSE.header. 2016-05-10 22:42:02 +02:00
Mikkel Krautz
39aebda1ad Channel, ServerUser: make cast operator non-const.
Places that use the QString() conversion operator
for Channel and ServerUser sometimes end up using
the QString move constructor, which doesn't take
const strings.

Example of an error:

	Messages.cpp:1055:65: error: no viable conversion from 'Channel' to 'QString'
				log(uSource, QString("Renamed channel %1 to %2").arg(QString(*c),

Fixes C++11 build on OS X (clang/libc++).
2016-05-09 23:49:43 +02:00
Thorvald Natvig
86fc793a5d Opus codec negotiation (server) 2011-11-06 19:00:33 -08:00
Kissaki
5fe6801b1b handle some cppcheck-found issues:
* uninitialized membervars,
* AudioOutput.cpp: fix delete on array to delete[]
* OSS.cpp: close file descriptor in false data case
* OverlayEditorScene.cpp: rm duplicate logic
* fix ifndef to match usage of declared variable
* member var initializations
* check for null (ds in d3d9 as some lines above),
* lower scope of var decl.,
* swap bufsize check and array dereference so check is before! deref,
* initialize member vars in constr.
2011-10-09 14:01:58 +02:00
Benjamin Jemlich
7529297760 Fix uppercase vs lowercase vs PCH include problems 2011-05-15 17:15:54 +02:00
Thorvald Natvig
07bf14614a Use TCP destination as UDP source 2011-05-11 07:25:56 +02:00
Thorvald Natvig
f3437a6ba7 Update copyright year ranges of dev team. 2011-03-18 05:52:51 +01:00
Stefan Hacker
2e816c7177 Make idleseconds not only reset on voice but on all actions caused by the user 2010-02-02 18:29:06 +01:00
Thorvald Natvig
7d8100275d Split ServerUser from Server.cpp 2010-01-28 12:34:38 +01:00