aws-sdk-core 3.114.1 → 3.117.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -80,13 +80,18 @@ module Seahorse
80
80
  _nonblocking_connect(tcp, addr)
81
81
  debug_output('opened')
82
82
 
83
- @socket = OpenSSL::SSL::SSLSocket.new(tcp, _tls_context)
84
- @socket.sync_close = true
85
- @socket.hostname = endpoint.host
83
+ if endpoint.scheme == 'https'
84
+ @socket = OpenSSL::SSL::SSLSocket.new(tcp, _tls_context)
85
+ @socket.sync_close = true
86
+ @socket.hostname = endpoint.host
87
+
88
+ debug_output("starting TLS for #{endpoint.host}:#{endpoint.port} ...")
89
+ @socket.connect
90
+ debug_output('TLS established')
91
+ else
92
+ @socket = tcp
93
+ end
86
94
 
87
- debug_output("starting TLS for #{endpoint.host}:#{endpoint.port} ...")
88
- @socket.connect
89
- debug_output('TLS established')
90
95
  _register_h2_callbacks
91
96
  @status = :active
92
97
  elsif @status == :closed
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.114.1
4
+ version: 3.117.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-02 00:00:00.000000000 Z
11
+ date: 2021-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath