diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-10-24 13:00:38 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-10-24 13:00:38 +0200 |
commit | c72a43d280744b2b1fec5e981651fc9bc8035f94 (patch) | |
tree | cf27691a6dcb2eae2a66777fc70405f7663ce366 /action.c | |
parent | d579eacd44d5513db9d89e3a45ae00ee9af753bc (diff) | |
download | rsyslog-c72a43d280744b2b1fec5e981651fc9bc8035f94.tar.gz rsyslog-c72a43d280744b2b1fec5e981651fc9bc8035f94.tar.bz2 rsyslog-c72a43d280744b2b1fec5e981651fc9bc8035f94.zip |
make rsyslog core suspened actions after 10 failures in a row
This was former the case after 1,000 failures and could cause rsyslog
to be spammed/ressou
Diffstat (limited to 'action.c')
-rw-r--r-- | action.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -659,7 +659,7 @@ actionDoRetry(action_t *pThis, time_t ttNow, int *pbShutdownImmediate) iRetries = 0; while((*pbShutdownImmediate == 0) && pThis->eState == ACT_STATE_RTRY) { iRet = pThis->pMod->tryResume(pThis->pModData); - if((pThis->iResumeOKinRow > 999) && (pThis->iResumeOKinRow % 1000 == 0)) { + if((pThis->iResumeOKinRow > 9) && (pThis->iResumeOKinRow % 10 == 0)) { bTreatOKasSusp = 1; pThis->iResumeOKinRow = 0; } else { |