systemd / systemd-netlogd

Forwards messages from the journal to other hosts over the network using syslog format RFC 5424 and RFC 3164
GNU General Public License v2.0
69 stars 25 forks source link

TCP not reconnecting when connection is reset by remote server #104

Closed cipriancraciun closed 3 months ago

cipriancraciun commented 3 months ago

I have built the latest v1.4 code on OpenSUSE Leap 15.5, and I've tried to push the messages to a remote TCP syslog server.

However, if the remote syslog server restarts, thus resetting the TCP connection, systemd-netlogd fails to detect the broken connection and thus fails to try to reconnect.

strace-ing the systemd-netlogd process yields the following events (that pertain to network activity):

ssahani commented 3 months ago

Please test with https://github.com/systemd/systemd-netlogd/pull/105

cipriancraciun commented 3 months ago

I've just tasted with latest main commit (that includes the pull you've mentioned), and apparently it works as expected now.

Thanks!