aws-sdk-core 3.89.0 → 3.89.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4792718d8a5ff91e016c51a0c086d283c2ac7ba2
4
- data.tar.gz: dff849117e3ccf090d80b3d4d2982549af9efbcc
3
+ metadata.gz: 1276b6391ee9efb2f5431b60dc9dd4da4a81e339
4
+ data.tar.gz: be1514be183e08a3c01d7a8f4ef0d859981adcfc
5
5
  SHA512:
6
- metadata.gz: 88c0554839f9982b6ef115edb9aaac87d7bceb6e41f35b20efd1235cf4f14bfd922a50a6e75611fc6147bf0178fddedcd51b9735abe3f4509aff71fb6254c44a
7
- data.tar.gz: 530fc62c766be09fe9b4a3d180a4050e5d41137dc53ac0c42d2b6d2524a56763a65e893f77c368ce6892270389f52294edc6dfae001a996bac254bf9ef948b17
6
+ metadata.gz: 4f43b95c970d6956c688d815ae409a64123a0b332c70cd138733c3a0704c823e9fc9f846dd523e3e6a8ccbd7095ede57e537cbc99a8f9fdb56e089d099a848a2
7
+ data.tar.gz: 8edd46ef45895d8e898b58533629e092eac359f8180952f79a996b23238872cc3f8da702a1345a45d68e3b44129520857180b3f6cc9ec16696c0f2738ace7ac3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.89.0
1
+ 3.89.1
@@ -40,6 +40,6 @@ require_relative 'aws-sdk-sts/customizations'
40
40
  # @service
41
41
  module Aws::STS
42
42
 
43
- GEM_VERSION = '3.89.0'
43
+ GEM_VERSION = '3.89.1'
44
44
 
45
45
  end
@@ -2131,7 +2131,7 @@ module Aws::STS
2131
2131
  params: params,
2132
2132
  config: config)
2133
2133
  context[:gem_name] = 'aws-sdk-core'
2134
- context[:gem_version] = '3.89.0'
2134
+ context[:gem_version] = '3.89.1'
2135
2135
  Seahorse::Client::Request.new(handlers, context)
2136
2136
  end
2137
2137
 
@@ -53,14 +53,14 @@ module Seahorse
53
53
 
54
54
  # Makes an HTTP request, yielding a Net::HTTPResponse object.
55
55
  #
56
- # pool.request('http://domain', Net::HTTP::Get.new('/')) do |resp|
56
+ # pool.request(URI.parse('http://domain'), Net::HTTP::Get.new('/')) do |resp|
57
57
  # puts resp.code # status code
58
58
  # puts resp.to_h.inspect # dump the headers
59
59
  # puts resp.body
60
60
  # end
61
61
  #
62
- # @param [String] endpoint The HTTP(S) endpoint to
63
- # connect to (e.g. 'https://domain.com').
62
+ # @param [URI::HTTP, URI::HTTPS] endpoint The HTTP(S) endpoint
63
+ # to connect to (e.g. 'https://domain.com').
64
64
  #
65
65
  # @param [Net::HTTPRequest] request The request to make. This can be
66
66
  # any request object from Net::HTTP (e.g. Net::HTTP::Get,
@@ -132,7 +132,7 @@ module Seahorse
132
132
  nil
133
133
  end
134
134
 
135
- # Closes and removes removes all sessions from the pool.
135
+ # Closes and removes all sessions from the pool.
136
136
  # If empty! is called while there are outstanding requests they may
137
137
  # get checked back into the pool, leaving the pool in a non-empty
138
138
  # state.
@@ -166,16 +166,16 @@ module Seahorse
166
166
  # requests through. Formatted like 'http://proxy.com:123'.
167
167
  #
168
168
  # @option options [Float] :http_open_timeout (15) The number of
169
- # seconds to wait when opening a HTTP session before rasing a
169
+ # seconds to wait when opening an HTTP session before raising a
170
170
  # `Timeout::Error`.
171
171
  #
172
172
  # @option options [Integer] :http_read_timeout (60) The default
173
173
  # number of seconds to wait for response data. This value can
174
174
  # safely be set
175
- # per-request on the session yeidled by {#session_for}.
175
+ # per-request on the session yielded by {#session_for}.
176
176
  #
177
177
  # @option options [Float] :http_idle_timeout (5) The number of
178
- # seconds a connection is allowed to sit idble before it is
178
+ # seconds a connection is allowed to sit idle before it is
179
179
  # considered stale. Stale connections are closed and removed
180
180
  # from the pool before making a request.
181
181
  #
@@ -184,7 +184,7 @@ module Seahorse
184
184
  # request body. This option has no effect unless the request has
185
185
  # "Expect" header set to "100-continue". Defaults to `nil` which
186
186
  # disables this behaviour. This value can safely be set per
187
- # request on the session yeidled by {#session_for}.
187
+ # request on the session yielded by {#session_for}.
188
188
  #
189
189
  # @option options [Boolean] :http_wire_trace (false) When `true`,
190
190
  # HTTP debug output will be sent to the `:logger`.
@@ -201,13 +201,13 @@ module Seahorse
201
201
  # @option options [String] :ssl_ca_bundle Full path to the SSL
202
202
  # certificate authority bundle file that should be used when
203
203
  # verifying peer certificates. If you do not pass
204
- # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
204
+ # `:ssl_ca_bundle` or `:ssl_ca_directory` the system default
205
205
  # will be used if available.
206
206
  #
207
207
  # @option options [String] :ssl_ca_directory Full path of the
208
208
  # directory that contains the unbundled SSL certificate
209
209
  # authority files for verifying peer certificates. If you do
210
- # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
210
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the
211
211
  # system default will be used if available.
212
212
  #
213
213
  # @return [ConnectionPool]
@@ -218,7 +218,7 @@ module Seahorse
218
218
  end
219
219
  end
220
220
 
221
- # @return [Array<ConnectionPool>] Returns a list of of the
221
+ # @return [Array<ConnectionPool>] Returns a list of the
222
222
  # constructed connection pools.
223
223
  def pools
224
224
  @pools_mutex.synchronize do
@@ -280,6 +280,7 @@ module Seahorse
280
280
  http = ExtendedSession.new(Net::HTTP.new(*args.compact))
281
281
  http.set_debug_output(logger) if http_wire_trace?
282
282
  http.open_timeout = http_open_timeout
283
+ http.keep_alive_timeout = http_idle_timeout if http.respond_to?(:keep_alive_timeout=)
283
284
 
284
285
  if endpoint.scheme == 'https'
285
286
  http.use_ssl = true
@@ -302,12 +303,12 @@ module Seahorse
302
303
  # Removes stale sessions from the pool. This method *must* be called
303
304
  # @note **Must** be called behind a `@pool_mutex` synchronize block.
304
305
  def _clean
305
- now = Time.now
306
+ now = Aws::Util.monotonic_milliseconds
306
307
  @pool.each_pair do |endpoint,sessions|
307
308
  sessions.delete_if do |session|
308
309
  if
309
310
  session.last_used.nil? or
310
- now - session.last_used > http_idle_timeout
311
+ now - session.last_used > http_idle_timeout * 1000
311
312
  then
312
313
  session.finish
313
314
  true
@@ -316,7 +317,7 @@ module Seahorse
316
317
  end
317
318
  end
318
319
 
319
- # Helper methods extended onto Net::HTTPSession objects opend by the
320
+ # Helper methods extended onto Net::HTTPSession objects opened by the
320
321
  # connection pool.
321
322
  # @api private
322
323
  class ExtendedSession < Delegator
@@ -326,7 +327,7 @@ module Seahorse
326
327
  @http = http
327
328
  end
328
329
 
329
- # @return [Time,nil]
330
+ # @return [Integer,nil]
330
331
  attr_reader :last_used
331
332
 
332
333
  def __getobj__
@@ -339,8 +340,8 @@ module Seahorse
339
340
 
340
341
  # Sends the request and tracks that this session has been used.
341
342
  def request(*args, &block)
342
- @last_used = Time.now
343
343
  @http.request(*args, &block)
344
+ @last_used = Aws::Util.monotonic_milliseconds
344
345
  end
345
346
 
346
347
  # Attempts to close/finish the session without raising an error.
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.89.0
4
+ version: 3.89.1
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: 2020-01-13 00:00:00.000000000 Z
11
+ date: 2020-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath