Skip to content

Commit

Permalink
cover http socket error
Browse files Browse the repository at this point in the history
  • Loading branch information
dpep committed Mar 8, 2024
1 parent 625527c commit bbd3984
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/network_resiliency/adapter/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bbd3984

Please sign in to comment.