Skip to content

Commit

Permalink
Merge pull request #2695 from fluent/ignore-econnrefused-in-tls-accept
Browse files Browse the repository at this point in the history
server: Ignore ECONNREFUSED in TLS accept to avoid fluentd restart.
  • Loading branch information
repeatedly authored Nov 14, 2019
2 parents 8b46fd0 + b7ad979 commit e1c8ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/plugin_helper/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ def try_tls_accept

return true
end
rescue Errno::EPIPE, Errno::ECONNRESET, Errno::ETIMEDOUT, OpenSSL::SSL::SSLError => e
rescue Errno::EPIPE, Errno::ECONNRESET, Errno::ETIMEDOUT, Errno::ECONNREFUSED, OpenSSL::SSL::SSLError => e
@log.trace "unexpected error before accepting TLS connection", error: e
close rescue nil
end
Expand Down

0 comments on commit e1c8ed5

Please sign in to comment.