class Excon::Connection

def socket

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