summaryrefslogtreecommitdiffstats
path: root/tcps_sess.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-04-01 16:26:21 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-04-01 16:26:21 +0200
commit0edf73f88096f3656da466027417d04ce7a2511c (patch)
treeca890d2481488afad0385c40b56a62ce6ec42a40 /tcps_sess.c
parent945bc9bd0d9de984ab11b9faf609b809a1f3cb90 (diff)
downloadrsyslog-0edf73f88096f3656da466027417d04ce7a2511c.zip
rsyslog-0edf73f88096f3656da466027417d04ce7a2511c.tar.gz
rsyslog-0edf73f88096f3656da466027417d04ce7a2511c.tar.xz
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tcps_sess.c b/tcps_sess.c
index 99af0cb..bed598d 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));