mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 15:10:42 +01:00
Make configuration setting SystemLogRateLimitBurst unsigned int
rsyslog uses unsigned short for configuration setting SystemLogRateLimitBurst. Being just 16 bits, unsigned short cannot hold values bigger than 65535. On our LDAP server rsyslog misbehaved with SystemLogRateLimitBurst being bigger than 65535. Make it unsigned int to accept bigger values.
This commit is contained in:
parent
3662f98d11
commit
94f246fd1a
@ -327,7 +327,7 @@ finalize_it:
|
||||
|
||||
/* enable linux-like ratelimiting */
|
||||
void
|
||||
ratelimitSetLinuxLike(ratelimit_t *ratelimit, unsigned short interval, unsigned short burst)
|
||||
ratelimitSetLinuxLike(ratelimit_t *ratelimit, unsigned short interval, unsigned burst)
|
||||
{
|
||||
ratelimit->interval = interval;
|
||||
ratelimit->burst = burst;
|
||||
|
||||
@ -25,7 +25,7 @@ struct ratelimit_s {
|
||||
char *name; /**< rate limiter name, e.g. for user messages */
|
||||
/* support for Linux kernel-type ratelimiting */
|
||||
unsigned short interval;
|
||||
unsigned short burst;
|
||||
unsigned burst;
|
||||
intTiny severity; /**< ratelimit only equal or lower severity levels (eq or higher values) */
|
||||
unsigned done;
|
||||
unsigned missed;
|
||||
@ -42,7 +42,7 @@ struct ratelimit_s {
|
||||
/* prototypes */
|
||||
rsRetVal ratelimitNew(ratelimit_t **ppThis, const char *modname, const char *dynname);
|
||||
void ratelimitSetThreadSafe(ratelimit_t *ratelimit);
|
||||
void ratelimitSetLinuxLike(ratelimit_t *ratelimit, unsigned short interval, unsigned short burst);
|
||||
void ratelimitSetLinuxLike(ratelimit_t *ratelimit, unsigned short interval, unsigned burst);
|
||||
void ratelimitSetNoTimeCache(ratelimit_t *ratelimit);
|
||||
void ratelimitSetSeverity(ratelimit_t *ratelimit, intTiny severity);
|
||||
rsRetVal ratelimitMsg(ratelimit_t *ratelimit, smsg_t *pMsg, smsg_t **ppRep);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user