class Gem::Net::HTTP::Persistent::Connection

:nodoc:

def finish

def finish
  @http.finish
rescue IOError
ensure
  reset
end

def initialize http_class, http_args, ssl_generation

def initialize http_class, http_args, ssl_generation
  @http           = http_class.new(*http_args)
  @ssl_generation = ssl_generation
  reset
end

def reset

def reset
  @last_use = Gem::Net::HTTP::Persistent::EPOCH
  @requests = 0
end

def ressl ssl_generation

def ressl ssl_generation
  @ssl_generation = ssl_generation
  finish
end