Skip to content

Commit

Permalink
Add open ssl error to network errors always
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Aug 5, 2024
1 parent c0c44f1 commit 782c287
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions gems/aws-sdk-core/lib/seahorse/client/net_http/handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,12 @@ def initialize(bytes_expected, bytes_received)

NETWORK_ERRORS = [
SocketError, EOFError, IOError, Timeout::Error,
Errno::ECONNABORTED, Errno::ECONNRESET, Errno::EPIPE,
Errno::EINVAL, Errno::ETIMEDOUT, OpenSSL::SSL::SSLError,
Errno::EHOSTUNREACH, Errno::ECONNREFUSED,
Errno::ECONNABORTED, Errno::ECONNRESET, Errno::EPIPE, Errno::EINVAL,
Errno::ETIMEDOUT, Errno::EHOSTUNREACH, Errno::ECONNREFUSED,
OpenSSL::SSL::SSLError, OpenSSL::SSL::SSLErrorWaitReadable,
Net::HTTPFatalError # for proxy connection failures
]

# does not exist in Ruby 1.9.3
if OpenSSL::SSL.const_defined?(:SSLErrorWaitReadable)
NETWORK_ERRORS << OpenSSL::SSL::SSLErrorWaitReadable
end

# @api private
DNS_ERROR_MESSAGES = [
'getaddrinfo: nodename nor servname provided, or not known', # MacOS
Expand Down

0 comments on commit 782c287

Please sign in to comment.