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
F149785295: D51995.diff
Fri, Mar 27, 2:03 AM
Unknown Object (File)
Sat, Mar 21, 12:52 PM
Unknown Object (File)
Sat, Mar 21, 6:50 AM
Unknown Object (File)
Thu, Mar 19, 12:33 AM
Unknown Object (File)
Tue, Mar 17, 9:04 PM
Unknown Object (File)
Thu, Mar 12, 10:29 PM
Unknown Object (File)
Thu, Mar 12, 5:12 PM
Unknown Object (File)
Fri, Feb 27, 6:52 PM
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