borisermakof / serilog-sinks-fluentd

A Sink that writes logs into Fluentd
Apache License 2.0
20 stars 31 forks source link

Skipping messages when the server is not available. #24

Open IVIalt opened 2 years ago

IVIalt commented 2 years ago

When the server(fluentd) becomes unavailable for a short time, the client does not understand that the tcp-connection is broken and continues to send messages to the void. Why don't you use connection check with SelectMode.SelectRead? Adding this check allows you to immediately know about a broken connection.