Randomized skeep.

This commit is contained in:
retoor 2025-08-01 01:59:23 +02:00
parent cc6a9ef9d3
commit 7c43d957bc

View File

@ -636,7 +636,7 @@ class RPCView(BaseView):
async for msg in ws: async for msg in ws:
if msg.type == web.WSMsgType.TEXT: if msg.type == web.WSMsgType.TEXT:
try: try:
await asyncio.sleep(random.uniform(0.1,0.4)) await asyncio.sleep(random.uniform(0.01,0.1))
await rpc(msg.json()) await rpc(msg.json())
except Exception as ex: except Exception as ex:
print("Deleting socket", ex, flush=True) print("Deleting socket", ex, flush=True)