Skip to content

Commit

Permalink
server: Ignore Errno::EHOSTUNREACH in TLS accept to avoid fluentd re…
Browse files Browse the repository at this point in the history
…start. #2772
  • Loading branch information
antoninblanc committed Jan 12, 2020
1 parent afdd907 commit 635df03
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 635df03

Please sign in to comment.