summaryrefslogtreecommitdiffstats
path: root/tcpsrv.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-04-12 11:48:09 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-04-12 11:48:09 +0200
commit92a782dd2fc85c233f7144d86970321f2bfee588 (patch)
tree06156dc4e1665a38cedf56d2c4fa4b4f2778b440 /tcpsrv.c
parent12a433e000cab7ab1737df479aefbaeccab0dc09 (diff)
parent9105946272e4190e042981f35994b3f044ebb0d3 (diff)
downloadrsyslog-92a782dd2fc85c233f7144d86970321f2bfee588.tar.gz
rsyslog-92a782dd2fc85c233f7144d86970321f2bfee588.tar.xz
rsyslog-92a782dd2fc85c233f7144d86970321f2bfee588.zip
Merge branch 'v5-devel'
Conflicts: configure.ac doc/manual.html plugins/imtcp/imtcp.c
Diffstat (limited to 'tcpsrv.c')
-rw-r--r--tcpsrv.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tcpsrv.c b/tcpsrv.c
index a87b4a1f..39cba5d1 100644
--- a/tcpsrv.c
+++ b/tcpsrv.c
@@ -874,6 +874,7 @@ BEGINobjConstruct(tcpsrv) /* be sure to specify the object type also in END macr
pThis->addtlFrameDelim = TCPSRV_NO_ADDTL_DELIMITER;
pThis->bDisableLFDelim = 0;
pThis->OnMsgReceive = NULL;
+ pThis->bUseFlowControl = 1;
ENDobjConstruct(tcpsrv)
@@ -1149,6 +1150,18 @@ SetLstnMax(tcpsrv_t *pThis, int iMax)
}
+/* set if flow control shall be supported
+ */
+static rsRetVal
+SetUseFlowControl(tcpsrv_t *pThis, int bUseFlowControl)
+{
+ DEFiRet;
+ ISOBJ_TYPE_assert(pThis, tcpsrv);
+ pThis->bUseFlowControl = bUseFlowControl;
+ RETiRet;
+}
+
+
/* set max number of sessions
* this must be called before ConstructFinalize, or it will have no effect!
* rgerhards, 2009-04-09
@@ -1191,6 +1204,7 @@ CODESTARTobjQueryInterface(tcpsrv)
pIf->SetAddtlFrameDelim = SetAddtlFrameDelim;
pIf->SetbDisableLFDelim = SetbDisableLFDelim;
pIf->SetSessMax = SetSessMax;
+ pIf->SetUseFlowControl = SetUseFlowControl;
pIf->SetLstnMax = SetLstnMax;
pIf->SetDrvrMode = SetDrvrMode;
pIf->SetDrvrAuthMode = SetDrvrAuthMode;