From 754a7c41cfdaf24dafe24573a423bba0216f9340 Mon Sep 17 00:00:00 2001 From: Antonin Blanc Date: Sun, 12 Jan 2020 19:26:28 +0100 Subject: [PATCH] server: Ignore Errno::EHOSTUNREACH in TLS accept to avoid fluentd restart. #2772 Signed-off-by: Antonin Blanc --- lib/fluent/plugin_helper/server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fluent/plugin_helper/server.rb b/lib/fluent/plugin_helper/server.rb index ecd7c5bd2f..f99a64e0cb 100644 --- a/lib/fluent/plugin_helper/server.rb +++ b/lib/fluent/plugin_helper/server.rb @@ -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