summaryrefslogtreecommitdiffstats
path: root/runtime/ratelimit.c
Commit message (Collapse)AuthorAgeFilesLines
* imjournal fix: put ratelimiter destruction in wrong entry pointRainer Gerhards2013-06-171-1/+1
| | | | No regression, this was in recently written, never-released code.
* implement new ratelimiting mode for imjournalRainer Gerhards2013-06-171-1/+15
| | | | | | | | | | | | | and make imjournal use it. The new mode is needed, as imjournal uses journal's timestamp as message generation time (which otherwise is when the message entered the system, and the ratelimiter uses this as current timestamp in order to save performance). It is debatable if imjournal is doing the right thing here. But it doesn't feel totally wrong. So let's safe that debate for later ;)
* bugfix: prevent calling tellLostCnt() twiceTomas Heinrich2013-06-121-1/+1
|
* bugfix: prevent another endless loop in the ratelimiterTomas Heinrich2013-06-121-1/+1
| | | | | | The message that reports how many messages were lost due to ratelimiting was sent before reseting the state that led to it. If it itself got ratelimited, this could lead to an endless loop.
* bugfix: prevent an endless loop in the ratelimiterTomas Heinrich2013-06-101-2/+2
| | | | | | | | | If messages are being dropped because of ratelimiting, an internal message is generated to inform about this fact. This should happen only uppon the firs occurance but the counter that tracks the number of dropped messages was incremented only after sending the message. If the message itself gets ratelimited, an endless loop spins out of control. Thanks to Jerry James for notifying about this.
* bugfix: prevent a segfault if ratelimit condition is not metTomas Heinrich2013-04-131-1/+13
| | | | | | Move the severity-check logic inside the ratelimiter and add a new function ratelimitSetSeverity() to manipulate the treshold. Currently only utilized by the imuxsock module.
* fix: memory leak in linux-like ratelimiterRainer Gerhards2012-10-151-1/+3
|
* fix: we need to use loadConf to access global settingsRainer Gerhards2012-10-151-1/+1
| | | | Hint: globals need to be re-done...
* fix: linux-like ratelimiting did not emit "final" message...Rainer Gerhards2012-10-151-7/+17
| | | | on destruction of rate limiter.
* imptcp: support for Linux-Type ratelimiting addedRainer Gerhards2012-10-151-5/+2
|
* ratelimit: added linux-like ratelimiter typeRainer Gerhards2012-10-151-10/+109
|
* ratelimit: respect $repeatedmsgreduction settingRainer Gerhards2012-10-151-26/+41
|
* milestone: convert imuxsock to ratelimitAddMsg() interfaceRainer Gerhards2012-10-151-3/+5
|
* imudp: add input batching & ratelimiter interfaceRainer Gerhards2012-10-151-0/+1
|
* ratelimiter: enable thread-safe mode & (related) API changesRainer Gerhards2012-10-151-58/+83
|
* interface cleanup (probably not final)Rainer Gerhards2012-10-151-1/+1
|
* milestone: ratelimiter used in imptcpRainer Gerhards2012-10-151-12/+37
|
* milestone: experimental rate limiter used in imuxsockRainer Gerhards2012-10-121-0/+127
|
* new ratelimit: interface plumbing addedRainer Gerhards2012-10-091-0/+56
no actual implementation yet done