Add timeout

This commit is contained in:
Fierelier 2021-04-20 17:23:37 +02:00
parent aaff11808e
commit b65b9d0f95

View File

@ -50,4 +50,4 @@ while True:
conn, address = serverSocket.accept()
with connectionLock:
connection = conn
connection.settimeout(None)
connection.settimeout(5)