From bbd3984030113a4db0fc83c7525430c724c3f284 Mon Sep 17 00:00:00 2001 From: Daniel Pepper Date: Fri, 8 Mar 2024 10:56:14 -0800 Subject: [PATCH] cover http socket error --- lib/network_resiliency/adapter/http.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/network_resiliency/adapter/http.rb b/lib/network_resiliency/adapter/http.rb index 111b879..716daa9 100644 --- a/lib/network_resiliency/adapter/http.rb +++ b/lib/network_resiliency/adapter/http.rb @@ -6,10 +6,11 @@ module HTTP extend self ERRORS = [ - Timeout::Error, IOError, - SystemCallError, (OpenSSL::OpenSSLError if defined?(OpenSSL::SSL)), + SocketError, + SystemCallError, + Timeout::Error, ].compact REQUEST_TIMEOUT_HEADER = "X-Request-Timeout"