diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-05-19 14:17:58 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-05-19 14:17:58 +0200 |
commit | 14122d7dc505c27b3dcc7b55250961ac5391cd70 (patch) | |
tree | 713d465375900426a3fe7b635cac9fbfa7efe762 | |
parent | 9daaa20683ac208106bce3f4d8742b4ed9d4f833 (diff) | |
download | rsyslog-14122d7dc505c27b3dcc7b55250961ac5391cd70.tar.gz rsyslog-14122d7dc505c27b3dcc7b55250961ac5391cd70.tar.xz rsyslog-14122d7dc505c27b3dcc7b55250961ac5391cd70.zip |
more information on TCP abort (tcp input)
-rw-r--r-- | tcpsrv.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -471,6 +471,7 @@ static rsRetVal Run(tcpsrv_t *pThis) { DEFiRet; + rsRetVal localRet; int nfds; int i; int iTCPSess; @@ -545,12 +546,13 @@ Run(tcpsrv_t *pThis) break; case RS_RET_OK: /* valid data received, process it! */ - if(tcps_sess.DataRcvd(pThis->pSessions[iTCPSess], buf, iRcvd) != RS_RET_OK) { + localRet = tcps_sess.DataRcvd(pThis->pSessions[iTCPSess], buf, iRcvd); + if(localRet != RS_RET_OK) { /* in this case, something went awfully wrong. * We are instructed to terminate the session. */ - errmsg.LogError(0, NO_ERRCODE, "Tearing down TCP Session %d - see " - "previous messages for reason(s)\n", iTCPSess); + errmsg.LogError(0, localRet, "Tearing down TCP Session %d - see " + "previous messages for reason(s)", iTCPSess); pThis->pOnErrClose(pThis->pSessions[iTCPSess]); tcps_sess.Destruct(&pThis->pSessions[iTCPSess]); } |