diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-04-09 13:44:52 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-04-09 13:44:52 +0200 |
commit | a5b4cb1681174ad221a8440422e4cd0da0e32064 (patch) | |
tree | 95abe0feed6e106025fc8d85d4ad28a36c06eb34 /tcpsrv.c | |
parent | 845c6f59b91e9988f856556cbb0e88e275e8e591 (diff) | |
parent | 0cade5118fbf6b7af6f34b53255e4e73b9578176 (diff) | |
download | rsyslog-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.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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; |