class Excon::Connection

def socket

def socket
  sockets[@socket_key] ||= if @data[:scheme] == HTTPS
    Excon::SSLSocket.new(@data)
  else
    Excon::Socket.new(@data)
  end
end