Add timeout
This commit is contained in:
parent
aaff11808e
commit
b65b9d0f95
@ -50,4 +50,4 @@ while True:
|
|||||||
conn, address = serverSocket.accept()
|
conn, address = serverSocket.accept()
|
||||||
with connectionLock:
|
with connectionLock:
|
||||||
connection = conn
|
connection = conn
|
||||||
connection.settimeout(None)
|
connection.settimeout(5)
|
Loading…
Reference in New Issue
Block a user