Commit 9cc0a4b7 authored by Djelloul Bekri's avatar Djelloul Bekri

test Timeout

parent 7b3fa826
......@@ -44,7 +44,7 @@ def sendToMgv(msg, address=None, port=None):
port = int(os.getenv("MGVPORT")) if port is None else int(port)
s.connect((address, port))
s.send(msg.encode())
s.setTimeout(3)
s.settimeout(3)
text = s.recv(4096)
except Exception as msg:
print(msg, file=sys.__stderr__)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment