Skip to content

Commit

Permalink
Merge pull request #2861 from fluent/server-change-sslerror-log-level
Browse files Browse the repository at this point in the history
server helper: Change SSLError log level to warn in accept
  • Loading branch information
repeatedly committed Mar 5, 2020
2 parents 33f13cb + 244c030 commit 6e6aa02
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/fluent/plugin_helper/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -706,9 +706,13 @@ def try_tls_accept

return true
end
rescue Errno::EPIPE, Errno::ECONNRESET, Errno::ETIMEDOUT, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, OpenSSL::SSL::SSLError => e
rescue Errno::EPIPE, Errno::ECONNRESET, Errno::ETIMEDOUT, Errno::ECONNREFUSED, Errno::EHOSTUNREACH => e
@log.trace "unexpected error before accepting TLS connection", error: e
close rescue nil
rescue OpenSSL::SSL::SSLError => e
# Use same log level as on_readable
@log.warn "unexpected error before accepting TLS connection by OpenSSL", error: e
close rescue nil
end

false
Expand Down

0 comments on commit 6e6aa02

Please sign in to comment.