Server-side websocket timeout: 3 -> 5 seconds
This commit is contained in:
parent
ef1843fdbc
commit
4efbcc50dd
1 changed files with 2 additions and 2 deletions
|
@ -125,8 +125,8 @@ class HttpBackend(Backend):
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
waiter = await websocket.ping()
|
waiter = await websocket.ping()
|
||||||
await asyncio.wait_for(waiter, timeout=3)
|
await asyncio.wait_for(waiter, timeout=5)
|
||||||
time.sleep(3)
|
time.sleep(5)
|
||||||
except (asyncio.TimeoutError, websockets.exceptions.ConnectionClosed) as e:
|
except (asyncio.TimeoutError, websockets.exceptions.ConnectionClosed) as e:
|
||||||
close = False
|
close = False
|
||||||
if isinstance(e, asyncio.TimeoutError):
|
if isinstance(e, asyncio.TimeoutError):
|
||||||
|
|
Loading…
Reference in a new issue