diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-04-09 13:41:38 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-04-09 13:41:38 +0200 |
commit | 0cade5118fbf6b7af6f34b53255e4e73b9578176 (patch) | |
tree | ef89b3b3ac9a9314848fcc1895cc8fc3900e4f07 /tcpsrv.c | |
parent | 0550512b28049c391be424ad518ed0debb77089e (diff) | |
parent | bc471f1d9046bf75a2e27d593ce9b13e4094ffdc (diff) | |
download | rsyslog-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.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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; |