Skip to content

Commit

Permalink
Merge pull request #2773 from antoninblanc/master
Browse files Browse the repository at this point in the history
server: Ignore Errno::EHOSTUNREACH in TLS accept to avoid fluentd restart. #2772
  • Loading branch information
repeatedly authored Jan 14, 2020
2 parents ae2ae62 + 754a7c4 commit 8750b72
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 @@ -711,7 +711,7 @@ def try_tls_accept

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

0 comments on commit 8750b72

Please sign in to comment.