lib/fluent/plugin/output_node.rb in fluent-plugin-secure-forward-0.3.3dev1 vs lib/fluent/plugin/output_node.rb in fluent-plugin-secure-forward-0.3.3dev2

- old
+ new

@@ -320,11 +320,14 @@ buf = '' end rescue OpenSSL::SSL::SSLError # to wait i/o restart sleep socket_interval - rescue EOFError, Errno::ETIMEDOUT - log.warn "disconnected from #{@host}" + rescue SystemCallError => e + log.warn "disconnected by Error", error_class: e.class, error: e, host: @host, port: @port + break + rescue EOFError + log.warn "disconnected", host: @host, port: @port break end end while @writing break if @detach