Skip to content

Commit 782c287

Browse files
committed
Add open ssl error to network errors always
1 parent c0c44f1 commit 782c287

File tree

1 file changed

+3
-8
lines changed
  • gems/aws-sdk-core/lib/seahorse/client/net_http

1 file changed

+3
-8
lines changed

gems/aws-sdk-core/lib/seahorse/client/net_http/handler.rb

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,12 @@ def initialize(bytes_expected, bytes_received)
2323

2424
NETWORK_ERRORS = [
2525
SocketError, EOFError, IOError, Timeout::Error,
26-
Errno::ECONNABORTED, Errno::ECONNRESET, Errno::EPIPE,
27-
Errno::EINVAL, Errno::ETIMEDOUT, OpenSSL::SSL::SSLError,
28-
Errno::EHOSTUNREACH, Errno::ECONNREFUSED,
26+
Errno::ECONNABORTED, Errno::ECONNRESET, Errno::EPIPE, Errno::EINVAL,
27+
Errno::ETIMEDOUT, Errno::EHOSTUNREACH, Errno::ECONNREFUSED,
28+
OpenSSL::SSL::SSLError, OpenSSL::SSL::SSLErrorWaitReadable,
2929
Net::HTTPFatalError # for proxy connection failures
3030
]
3131

32-
# does not exist in Ruby 1.9.3
33-
if OpenSSL::SSL.const_defined?(:SSLErrorWaitReadable)
34-
NETWORK_ERRORS << OpenSSL::SSL::SSLErrorWaitReadable
35-
end
36-
3732
# @api private
3833
DNS_ERROR_MESSAGES = [
3934
'getaddrinfo: nodename nor servname provided, or not known', # MacOS

0 commit comments

Comments
 (0)