10 Commits

Author SHA1 Message Date
purnima
d45daa2af0 Rebase,redefine msgDestruct() as smsg_t is used 2016-11-22 14:24:25 +05:30
Rainer Gerhards
804823a09a ratelimiting system: fix data types 2016-06-01 11:43:32 +02:00
Rainer Gerhards
4357348b96 implement new ratelimiting mode for imjournal
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 ;)
2013-06-17 13:34:17 +02:00
Tomas Heinrich
4e0c339586 bugfix: prevent a segfault if ratelimit condition is not met
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.
2013-04-13 11:27:51 +02:00
Rainer Gerhards
cfa8d01f52 imptcp: support for Linux-Type ratelimiting added 2012-10-15 17:01:00 +02:00
Rainer Gerhards
34a88a7e9a ratelimit: added linux-like ratelimiter type 2012-10-15 16:39:36 +02:00
Rainer Gerhards
6ab4666622 ratelimit: respect $repeatedmsgreduction setting 2012-10-15 13:05:42 +02:00
Rainer Gerhards
3806643baa ratelimiter: enable thread-safe mode & (related) API changes 2012-10-15 11:19:22 +02:00
Rainer Gerhards
c7aa09bbb2 milestone: experimental rate limiter used in imuxsock 2012-10-12 18:30:51 +02:00
Rainer Gerhards
4269e45781 new ratelimit: interface plumbing added
no actual implementation yet done
2012-10-09 18:54:25 +02:00