diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-03-19 15:28:25 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-03-19 15:28:25 +0100 |
commit | 4fb7ba113c4d4afd485feb2729c5ff67bc8ddd4a (patch) | |
tree | e585d52baf5a7e4323da7f3b893027c38e9ca3d2 /plugins/imdiag | |
parent | 7d516b0a6c46177c18aea30b4617f1d2712d48fd (diff) | |
download | rsyslog-4fb7ba113c4d4afd485feb2729c5ff67bc8ddd4a.tar.gz rsyslog-4fb7ba113c4d4afd485feb2729c5ff67bc8ddd4a.tar.xz rsyslog-4fb7ba113c4d4afd485feb2729c5ff67bc8ddd4a.zip |
added configuration directive to disable octet-counted framing
... for imtcp, directive is $InputTCPServerSupportOctetCountedFraming
Diffstat (limited to 'plugins/imdiag')
-rw-r--r-- | plugins/imdiag/imdiag.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/imdiag/imdiag.c b/plugins/imdiag/imdiag.c index b3468921..bcbbab09 100644 --- a/plugins/imdiag/imdiag.c +++ b/plugins/imdiag/imdiag.c @@ -376,7 +376,8 @@ static rsRetVal addTCPListener(void __attribute__((unused)) *pVal, uchar *pNewVa /* initialized, now add socket */ CHKiRet(tcpsrv.SetInputName(pOurTcpsrv, pszInputName == NULL ? UCHAR_CONSTANT("imdiag") : pszInputName)); - tcpsrv.configureTCPListen(pOurTcpsrv, pNewVal); + /* we support octect-cuunted frame (constant 1 below) */ + tcpsrv.configureTCPListen(pOurTcpsrv, pNewVal, 1); finalize_it: if(iRet != RS_RET_OK) { |