def check_http_server(host, port):
 req = get('http://{host}:{port}'.format(host=host, port=port), timeout=SOCKET_TIMEOUT_FOR_POLLING, persistent=False)
 def failed(failure):
  return False
 def succeeded(result):
  return True
 req.addCallbacks(succeeded, failed)
 return req

def check_http_server ( host , port ) : req = get ( 'http://{host}:{port}' . format ( host = host , port = port ) , timeout = SOCKET_TIMEOUT_FOR_POLLING , persistent = False ) def failed ( failure ) : return False def succeeded ( result ) : return True req . addCallbacks ( succeeded , failed ) return req
check if an http server is running .