mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-18 20:20:41 +01:00
Merge branch 'v5-stable' into v6-stable
Conflicts: action.c queue.c (some code moved from action.c --> queue.c)
This commit is contained in:
commit
07e296703b
@ -730,6 +730,8 @@ Version 5.10.2 [V5-STABLE], 201?-??-??
|
||||
Thanks to Marius Tomaschewski for the bug report and the patch idea.
|
||||
- bugfix: invalid DST handling under Solaris
|
||||
Thanks to Scott Severtson for the patch.
|
||||
- bugfix: invalid decrement in pm5424 could lead to log truncation
|
||||
Thanks to Tomas Heinrich for the patch.
|
||||
- bugfix[kind of]: omudpspoof discarded messages >1472 bytes (MTU size)
|
||||
it now truncates these message, but ensures they are sent. Note that
|
||||
7.2.5+ will switch to fragmented UDP messages instead (up to 64K)
|
||||
|
||||
2
action.c
2
action.c
@ -255,7 +255,7 @@ actionResetQueueParams(void)
|
||||
cs.iActionQueueDeqBatchSize = 16; /* default batch size */
|
||||
cs.iActionQHighWtrMark = 800; /* high water mark for disk-assisted queues */
|
||||
cs.iActionQLowWtrMark = 200; /* low water mark for disk-assisted queues */
|
||||
cs.iActionQDiscardMark = 9800; /* begin to discard messages */
|
||||
cs.iActionQDiscardMark = 980; /* begin to discard messages */
|
||||
cs.iActionQDiscardSeverity = 8; /* discard warning and above */
|
||||
cs.iActionQueueNumWorkers = 1; /* number of worker threads for the mm queue above */
|
||||
cs.iActionQueMaxFileSize = 1024*1024;
|
||||
|
||||
@ -303,8 +303,10 @@ ParseTIMESTAMP3339(struct syslogTime *pTime, uchar** ppszTS, int *pLenStr)
|
||||
if(OffsetHour < 0 || OffsetHour > 23)
|
||||
ABORT_FINALIZE(RS_RET_INVLD_TIME);
|
||||
|
||||
if(lenStr == 0 || *pszTS++ != ':')
|
||||
if(lenStr == 0 || *pszTS != ':')
|
||||
ABORT_FINALIZE(RS_RET_INVLD_TIME);
|
||||
--lenStr;
|
||||
pszTS++;
|
||||
OffsetMinute = srSLMGParseInt32(&pszTS, &lenStr);
|
||||
if(OffsetMinute < 0 || OffsetMinute > 59)
|
||||
ABORT_FINALIZE(RS_RET_INVLD_TIME);
|
||||
|
||||
@ -1389,7 +1389,7 @@ qqueueSetDefaultsActionQueue(qqueue_t *pThis)
|
||||
pThis->iDeqBatchSize = 128; /* default batch size */
|
||||
pThis->iHighWtrMrk = 800; /* high water mark for disk-assisted queues */
|
||||
pThis->iLowWtrMrk = 200; /* low water mark for disk-assisted queues */
|
||||
pThis->iDiscardMrk = 9800; /* begin to discard messages */
|
||||
pThis->iDiscardMrk = 980; /* begin to discard messages */
|
||||
pThis->iDiscardSeverity = 8; /* turn off */
|
||||
pThis->iNumWorkerThreads = 1; /* number of worker threads for the mm queue above */
|
||||
pThis->iMaxFileSize = 1024*1024;
|
||||
|
||||
@ -429,6 +429,8 @@ int sendMessages(struct instdata *inst)
|
||||
}
|
||||
}
|
||||
genMsg(buf, sizeof(buf), &lenBuf, inst); /* generate the message to send according to params */
|
||||
if(lenBuf == 0)
|
||||
break; /* terminate when no message could be generated */
|
||||
if(transport == TP_TCP) {
|
||||
if(sockArray[socknum] == -1) {
|
||||
/* connection was dropped, need to re-establish */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user