Page MenuHomeFreeBSD

syslogd: EAGAIN and ECONNREFUSED are not permanently fatal
ClosedPublic

Authored by kp on Aug 18 2025, 10:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 18, 5:14 AM
Unknown Object (File)
Sat, Oct 11, 4:49 PM
Unknown Object (File)
Sat, Oct 11, 4:49 PM
Unknown Object (File)
Sat, Oct 11, 4:49 PM
Unknown Object (File)
Sat, Oct 11, 8:14 AM
Unknown Object (File)
Thu, Oct 9, 9:52 AM
Unknown Object (File)
Sun, Oct 5, 4:09 AM
Unknown Object (File)
Thu, Sep 25, 4:41 AM
Subscribers

Details

Summary

When we're forwarding syslog messages to a remote host we can get temporary
failures such as EAGAIN or ECONNREFUSED from the sendmsg() call. These are not
fatal. Future attempts to send might succeed. Don't mark the remote target as
F_UNUSED so we'll try to log again on future messages.

While here remove the commented out ENOBUFS case, because we actually handle
that (by ignoring it, so we retry with future logs).

Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable