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"