End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Request#connection_for
connection_for(uri)
lib/rubygems/request.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/request.rb, line 128
def connection_for(uri)
@connection_pool.checkout
rescue Gem::HAVE_OPENSSL ? OpenSSL::SSL::SSLError : Errno::EHOSTDOWN,
Errno::EHOSTDOWN => e
raise Gem::RemoteFetcher::FetchError.new(e.message, uri)
end
Creates or an HTTP connection based on uri, or retrieves an existing connection, using a proxy if needed.
See also
#cert_files
#fetch
.verify_certificate_message
#proxy_uri
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0