The gelf.rb dependency does not properly check for connection breakdown and discards every first message that it tries to send to server that just terminated the connection.
Version: 3.1.4, gelf-3.0.0
Operating System: CentOS 7
Steps to Reproduce:
Create a numbered messages generator
Start a dummy Netcat server listening on (i.e.) 12201/tcp
Send the generated messages to the Netcat server via the GELF output. All messages will be delivered.
Restart the Netcat server.
Send the generated messages again. The first message won't be delivered.
I've already posted a PR here: https://github.com/graylog-labs/gelf-rb/pull/70
I've discovered this issue with the TCP output plugin as well, yet with one difference: The message got lost only if the server sent a random content back prior to the connection breakdown.
The
gelf.rb
dependency does not properly check for connection breakdown and discards every first message that it tries to send to server that just terminated the connection.I've already posted a PR here: https://github.com/graylog-labs/gelf-rb/pull/70 I've discovered this issue with the TCP output plugin as well, yet with one difference: The message got lost only if the server sent a random content back prior to the connection breakdown.