Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def run_server(solver, port=None):
if port is None:
port = get_available_port()
aidserver.solver = solver
aidserver.run(host='0.0.0.0', port=port, workers=4)
def run_server(solver, port=None):
if port is None:
port = get_available_port()
aidserver.solver = solver
aidserver.run(host='0.0.0.0', port=port, debug=False)