diff --git a/ansible/roles/vm_set/files/mux_simulator.py b/ansible/roles/vm_set/files/mux_simulator.py index 81c74700785..db49c115974 100644 --- a/ansible/roles/vm_set/files/mux_simulator.py +++ b/ansible/roles/vm_set/files/mux_simulator.py @@ -8,6 +8,7 @@ import re import shlex import subprocess +import socket import sys import threading import traceback @@ -966,4 +967,5 @@ def log_message(vm_set): app.logger.info('Starting server on port {}'.format(sys.argv[1])) create_muxes(arg_vm_set) app.logger.info('####################### STARTING HTTP SERVER #######################') - app.run(host='0.0.0.0', port=http_port, threaded=False) + socket.setdefaulttimeout(60) + app.run(host='0.0.0.0', port=http_port, threaded=True) # nosemgrep