module AWS::Core::Http::ConnectionPool::SessionExtensions

def finish

Attempts to close/finish the session without raising an error.
def finish
  super
rescue IOError
  nil
end

def last_used

Returns:
  • (Time, nil) -
def last_used
  @last_used
end

def request *args, &block

Sends the request and tracks that this session has been used.
def request *args, &block
  @last_used = Time.now
  super(*args, &block)
end