mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-16 21:30:42 +01:00
nsd_ptcp fix: misleading error messages (regression from ad1fd21)
We received reports of log messages incorrectly referring to "imptcp" even though the imptcp module was not loaded on the system. This caused confusion during troubleshooting. One such message was: rsyslogd: imptcp cannot set keepalive intvl - ignored: Bad file descriptor This message originated from the nsd_ptcp module, but the LogError() calls in EnableKeepAlive() still used "imptcp" as the source name. This is a regression introduced in commit ad1fd21, which restructured TCP input handling and moved responsibility for keepalive setup to nsd_ptcp, but did not update the associated log messages. This patch corrects the affected log strings to use "nsd_ptcp", accurately reflecting the code path that emits them. There is no functional change; the patch improves clarity of log output and prevents misleading diagnostics. The actual error shown could be related to a different issue, see also https://github.com/rsyslog/rsyslog/pull/5749
This commit is contained in:
parent
c0391f5a84
commit
3cd89a47e6
@ -932,7 +932,7 @@ EnableKeepAlive(nsd_t *pNsd)
|
||||
ret = -1;
|
||||
# endif
|
||||
if(ret < 0) {
|
||||
LogError(ret, NO_ERRCODE, "imptcp cannot set keepalive probes - ignored");
|
||||
LogError(ret, NO_ERRCODE, "nsd_ptcp cannot set keepalive probes - ignored");
|
||||
}
|
||||
|
||||
# if defined(IPPROTO_TCP) && defined(TCP_KEEPIDLE)
|
||||
@ -947,7 +947,7 @@ EnableKeepAlive(nsd_t *pNsd)
|
||||
ret = -1;
|
||||
# endif
|
||||
if(ret < 0) {
|
||||
LogError(ret, NO_ERRCODE, "imptcp cannot set keepalive time - ignored");
|
||||
LogError(ret, NO_ERRCODE, "nsd_ptcp cannot set keepalive time - ignored");
|
||||
}
|
||||
|
||||
# if defined(IPPROTO_TCP) && defined(TCP_KEEPCNT)
|
||||
@ -962,7 +962,7 @@ EnableKeepAlive(nsd_t *pNsd)
|
||||
ret = -1;
|
||||
# endif
|
||||
if(ret < 0) {
|
||||
LogError(errno, NO_ERRCODE, "imptcp cannot set keepalive intvl - ignored");
|
||||
LogError(errno, NO_ERRCODE, "nsd_ptcp cannot set keepalive intvl - ignored");
|
||||
}
|
||||
|
||||
dbgprintf("KEEPALIVE enabled for socket %d\n", pThis->sock);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user