Skip to content

Commit

Permalink
server: Ignore EPIPE in TLS accept to avoid fluentd restart
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Rosiek <[email protected]>
Signed-off-by: Dominik Rosiek <[email protected]>
  • Loading branch information
macdewee authored and Dominik Rosiek committed Jan 7, 2019
1 parent bc0ff46 commit b2db5e3
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::ECONNRESET, OpenSSL::SSL::SSLError => e
rescue Errno::EPIPE, Errno::ECONNRESET, OpenSSL::SSL::SSLError => e
@log.trace "unexpected error before accepting TLS connection", error: e
close rescue nil
end
Expand Down

0 comments on commit b2db5e3

Please sign in to comment.