From 724ba2b27f4a2c583b3e257e33a2f0b4b9649ef1 Mon Sep 17 00:00:00 2001
From: Rainer Gerhards
Please visit the rsyslog sponsor's page to honor the project sponsors or become one yourself! We are very grateful for any help towards the project goals.
-This documentation is for version 4.5.4 (v4-beta branch) of rsyslog. +
This documentation is for version 4.5.5 (v4-beta branch) of rsyslog. Visit the rsyslog status page to obtain current version information and project status.
If you like rsyslog, you might diff --git a/runtime/rsyslog.h b/runtime/rsyslog.h index 8a043dde..eb5b4537 100644 --- a/runtime/rsyslog.h +++ b/runtime/rsyslog.h @@ -367,6 +367,7 @@ enum rsRetVal_ /** return value. All methods return this if not specified oth RS_RET_FILENAME_INVALID = -2140, /**< filename invalid, not found, no access, ... */ RS_RET_ZLIB_ERR = -2141, /**< error during zlib call */ RS_RET_VAR_NOT_FOUND = -2142, /**< variable not found */ + RS_RET_PEER_CLOSED_CONN = -2144, /**< remote peer closed connection (information, no error) */ /* RainerScript error messages (range 1000.. 1999) */ RS_RET_SYSVAR_NOT_FOUND = 1001, /**< system variable could not be found (maybe misspelled) */ diff --git a/tcpsrv.c b/tcpsrv.c index 543425ea..0102bee7 100644 --- a/tcpsrv.c +++ b/tcpsrv.c @@ -534,7 +534,7 @@ Run(tcpsrv_t *pThis) int lenPeer; errno = 0; prop.GetString(pThis->pSessions[iTCPSess]->fromHostIP, &pszPeer, &lenPeer); - errmsg.LogError(0, iRet, "Netstream session %p closed by remote peer %s.\n", + errmsg.LogError(0, RS_RET_PEER_CLOSED_CONN, "Netstream session %p closed by remote peer %s.\n", pThis->pSessions[iTCPSess]->pStrm, pszPeer); } pThis->pOnRegularClose(pThis->pSessions[iTCPSess]); -- cgit