From 5e87c086847f51c8e8d0a7efc4a5b4999707ad8d Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 1 Feb 2006 08:52:02 +0000 Subject: remove 2 forgotten debug-printfs causing performance problems in the tcp receiver --- NEWS | 5 +++++ syslogd.c | 2 -- version.h | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 57be8e54..0feb1420 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,9 @@ --------------------------------------------------------------------------- +Version 1.0.4 (RGer), 2006-02-01 +- a small but important fix: the tcp receiver had two forgotten printf's + in it that caused a lot of unnecessary output to stdout. This was + important enough to justify a new release +--------------------------------------------------------------------------- Version 1.0.3 (RGer), 2005-11-14 - added an additional guard to prevent rsyslogd from aborting when the 2gb file size limit is hit. While a user can configure rsyslogd to diff --git a/syslogd.c b/syslogd.c index fbb896d5..df6abec9 100644 --- a/syslogd.c +++ b/syslogd.c @@ -896,7 +896,6 @@ void TCPSessDataRcvd(int iTCPSess, char *pData, int iLen) pEnd = pData + iLen; /* this is one off, which is intensional */ while(pData < pEnd) { -printf("## in loop\n"); if(iMsg >= MAXLINE) { /* emergency, we now need to flush, no matter if * we are at end of message or not... @@ -914,7 +913,6 @@ printf("## in loop\n"); printline(TCPSessions[iTCPSess].fromHost, pMsg, SOURCE_INET); iMsg = 0; ++pData; -printf("## record delim found\n"); } else { *(pMsg + iMsg++) = *pData++; } diff --git a/version.h b/version.h index bb6dd539..45024e99 100644 --- a/version.h +++ b/version.h @@ -1,2 +1,2 @@ #define VERSION "1.0" -#define PATCHLEVEL "3" +#define PATCHLEVEL "4" -- cgit