lib/syslogstash/syslog_reader.rb in syslogstash-1.0.1 vs lib/syslogstash/syslog_reader.rb in syslogstash-1.0.2
- old
+ new
@@ -145,10 +145,10 @@
rescue Errno::ENOTCONN
# Socket isn't being listened to. Not our problem.
rescue IO::EAGAINWaitWritable
unless @currently_failed[f]
log { "Socket #{f} is backlogged; messages to this socket from socket #{@file} are being discarded undelivered" }
- @currently_failed = true
+ @currently_failed[f] = true
end
rescue StandardError => ex
log { "Failed to relay message to socket #{f} from #{@file}: #{ex.message} (#{ex.class})" }
end
end