summaryrefslogtreecommitdiffstats
path: root/tcpsrv.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-04-09 13:41:38 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-09 13:41:38 +0200
commit0cade5118fbf6b7af6f34b53255e4e73b9578176 (patch)
treeef89b3b3ac9a9314848fcc1895cc8fc3900e4f07 /tcpsrv.c
parent0550512b28049c391be424ad518ed0debb77089e (diff)
parentbc471f1d9046bf75a2e27d593ce9b13e4094ffdc (diff)
downloadrsyslog-0cade5118fbf6b7af6f34b53255e4e73b9578176.tar.gz
rsyslog-0cade5118fbf6b7af6f34b53255e4e73b9578176.tar.xz
rsyslog-0cade5118fbf6b7af6f34b53255e4e73b9578176.zip
Merge branch 'v3-stable' into beta
Conflicts: ChangeLog
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 885edba3..107d03f4 100644
--- a/tcpsrv.c
+++ b/tcpsrv.c
@@ -702,6 +702,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
*/
@@ -727,6 +741,7 @@ CODESTARTobjQueryInterface(tcpsrv)
pIf->Run = Run;
pIf->SetUsrP = SetUsrP;
+ pIf->SetSessMax = SetSessMax;
pIf->SetDrvrMode = SetDrvrMode;
pIf->SetDrvrAuthMode = SetDrvrAuthMode;
pIf->SetDrvrPermPeers = SetDrvrPermPeers;