class Excon::Test::Server

def stop

def stop
  if RUBY_PLATFORM == 'java'
    Process.kill('USR1', pid)
  else
    Process.kill(9, pid)
    Process.wait(pid)
  end
  if @is_unix_socket
    socket = @bind.path
    File.delete(socket) if File.exist?(socket)
  end
  # TODO: Ensure process is really dead
  dump_errors
  true
end