diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-04-01 16:26:21 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-04-01 16:26:21 +0200 |
commit | 0edf73f88096f3656da466027417d04ce7a2511c (patch) | |
tree | ca890d2481488afad0385c40b56a62ce6ec42a40 /tcps_sess.c | |
parent | 945bc9bd0d9de984ab11b9faf609b809a1f3cb90 (diff) | |
download | rsyslog-0edf73f88096f3656da466027417d04ce7a2511c.tar.gz rsyslog-0edf73f88096f3656da466027417d04ce7a2511c.tar.xz rsyslog-0edf73f88096f3656da466027417d04ce7a2511c.zip |
added new config directive $InputTCPFlowControl...
... to select if tcp received messages shall be flagged as
light delayable or not.
Diffstat (limited to 'tcps_sess.c')
-rw-r--r-- | tcps_sess.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tcps_sess.c b/tcps_sess.c index 99af0cb8..bed598dd 100644 --- a/tcps_sess.c +++ b/tcps_sess.c @@ -253,7 +253,8 @@ defaultDoSubmitMessage(tcps_sess_t *pThis, struct syslogTime *stTime, time_t ttG CHKiRet(msgConstructWithTime(&pMsg, stTime, ttGenTime)); MsgSetRawMsg(pMsg, (char*)pThis->pMsg, pThis->iMsg); MsgSetInputName(pMsg, pThis->pLstnInfo->pInputName); - MsgSetFlowControlType(pMsg, eFLOWCTL_LIGHT_DELAY); + MsgSetFlowControlType(pMsg, pThis->pSrv->bUseFlowControl + ? eFLOWCTL_LIGHT_DELAY : eFLOWCTL_NO_DELAY); pMsg->msgFlags = NEEDS_PARSING | PARSE_HOSTNAME; MsgSetRcvFrom(pMsg, pThis->fromHost); CHKiRet(MsgSetRcvFromIP(pMsg, pThis->fromHostIP)); |