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.
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.