Helper methods extended onto Net::HTTPSession objects opend by the connection pool. @api private
Attempts to close/finish the session without raising an error.
# File lib/aws/core/http/connection_pool.rb, line 365 def finish super rescue IOError nil end
@return [Time,nil]
# File lib/aws/core/http/connection_pool.rb, line 360 def last_used @last_used end
Sends the request and tracks that this session has been used.
# File lib/aws/core/http/connection_pool.rb, line 354 def request *args, &block @last_used = Time.now super(*args, &block) end