Sha256: 7aaf5a5b65e6c4f24688d693b60b7d89204247e132bc1af7409a22323e700e6c
Contents?: true
Size: 743 Bytes
Versions: 2
Compression:
Stored size: 743 Bytes
Contents
## # A Net::HTTP connection wrapper that holds extra information for managing the # connection's lifetime. class Bundler::Persistent::Net::HTTP::Persistent::Connection # :nodoc: attr_accessor :http attr_accessor :last_use attr_accessor :requests attr_accessor :ssl_generation def initialize http_class, http_args, ssl_generation @http = http_class.new(*http_args) @ssl_generation = ssl_generation reset end def finish @http.finish rescue IOError ensure reset end alias_method :close, :finish def reset @last_use = Bundler::Persistent::Net::HTTP::Persistent::EPOCH @requests = 0 end def ressl ssl_generation @ssl_generation = ssl_generation finish end end
Version data entries
2 entries across 2 versions & 2 rubygems