tagomoris / fluent-plugin-secure-forward

Other
140 stars 30 forks source link

fluentd dies when a connection is reset. #22

Closed kumai closed 9 years ago

kumai commented 9 years ago

Hi,

OpenSSL::Buffering#read_nonblock(called at output_node.rb:314) raises Errno::ECONNRESET when a connection is reset by peer unexpectedly, and then fluentd dies. I think the SystemCallError should be rescued in SecureForwardOutput::Node#connect.

tagomoris commented 9 years ago

I've fixed it and released v0.3.3dev2. @kumai Can you test it?

kumai commented 9 years ago

Thank you for your quick fix and it LGTM. But unfortunately I don't know how to reproduce the 'connection reset' error manually, so I think it's difficult to test the fix in our environment. sorry...

tagomoris commented 9 years ago

OK, once i close this issue. Please reopen if you find any problems.