summaryrefslogtreecommitdiffstats
path: root/tcpsrv.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-04-09 13:44:52 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-09 13:44:52 +0200
commita5b4cb1681174ad221a8440422e4cd0da0e32064 (patch)
tree95abe0feed6e106025fc8d85d4ad28a36c06eb34 /tcpsrv.c
parent845c6f59b91e9988f856556cbb0e88e275e8e591 (diff)
parent0cade5118fbf6b7af6f34b53255e4e73b9578176 (diff)
downloadrsyslog-a5b4cb1681174ad221a8440422e4cd0da0e32064.tar.gz
rsyslog-a5b4cb1681174ad221a8440422e4cd0da0e32064.tar.xz
rsyslog-a5b4cb1681174ad221a8440422e4cd0da0e32064.zip
Merge branch 'beta'
Conflicts: ChangeLog tcpsrv.c tcpsrv.h Note: we have a slight inconsistency, as interface version v4 was already used for tcpsrv in this branch. We accept this inconsistency.
Diffstat (limited to 'tcpsrv.c')
-rw-r--r--tcpsrv.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/tcpsrv.c b/tcpsrv.c
index bb81a281..b9434398 100644
--- a/tcpsrv.c
+++ b/tcpsrv.c
@@ -735,6 +735,20 @@ SetDrvrPermPeers(tcpsrv_t *pThis, permittedPeers_t *pPermPeers)
* -------------------------------------------------------------------------- */
+/* set max number of sessions
+ * this must be called before ConstructFinalize, or it will have no effect!
+ * rgerhards, 2009-04-09
+ */
+static rsRetVal
+SetSessMax(tcpsrv_t *pThis, int iMax)
+{
+ DEFiRet;
+ ISOBJ_TYPE_assert(pThis, tcpsrv);
+ pThis->iSessMax = iMax;
+ RETiRet;
+}
+
+
/* queryInterface function
* rgerhards, 2008-02-29
*/
@@ -762,6 +776,7 @@ CODESTARTobjQueryInterface(tcpsrv)
pIf->SetUsrP = SetUsrP;
pIf->SetInputName = SetInputName;
pIf->SetAddtlFrameDelim = SetAddtlFrameDelim;
+ pIf->SetSessMax = SetSessMax;
pIf->SetDrvrMode = SetDrvrMode;
pIf->SetDrvrAuthMode = SetDrvrAuthMode;
pIf->SetDrvrPermPeers = SetDrvrPermPeers;