# File lib/net/ssh/gateway.rb, line 73
  def initialize(host, user, options={})
    @session = Net::SSH.start(host, user, options)
    @session_mutex = Mutex.new
    @port_mutex = Mutex.new
    @next_port = MAX_PORT
    @loop_wait = options.delete(:loop_wait) || 0.001
    initiate_event_loop!
  end