summaryrefslogtreecommitdiffstats
path: root/tcps_sess.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-03-01 11:33:48 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-03-01 11:33:48 +0100
commitebf058226120b89bc2735ff72c4c12c14cfa2599 (patch)
treef7c0c2fc2fb63e253cdd3459dad0ce1f08dbe07d /tcps_sess.c
parent89092a5e4a4ae2f162a3eb164125cf668ad10bfc (diff)
downloadrsyslog-ebf058226120b89bc2735ff72c4c12c14cfa2599.tar.gz
rsyslog-ebf058226120b89bc2735ff72c4c12c14cfa2599.tar.xz
rsyslog-ebf058226120b89bc2735ff72c4c12c14cfa2599.zip
added capability to turn off standard LF delimiter in TCP server
via new directive "$InputTCPServerDisableLFDelimiter on"
Diffstat (limited to 'tcps_sess.c')
-rw-r--r--tcps_sess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcps_sess.c b/tcps_sess.c
index a3cd2f30..69b40ad0 100644
--- a/tcps_sess.c
+++ b/tcps_sess.c
@@ -407,7 +407,7 @@ processDataRcvd(tcps_sess_t *pThis, char c, struct syslogTime *stTime, time_t tt
*/
}
- if(( (c == '\n')
+ if(( ((c == '\n') && !pThis->pSrv->bDisableLFDelim)
|| ((pThis->pSrv->addtlFrameDelim != TCPSRV_NO_ADDTL_DELIMITER) && (c == pThis->pSrv->addtlFrameDelim))
) && pThis->eFraming == TCP_FRAMING_OCTET_STUFFING) { /* record delimiter? */
defaultDoSubmitMessage(pThis, stTime, ttGenTime, pMultiSub);