Randomized skeep.
This commit is contained in:
		
							parent
							
								
									cc6a9ef9d3
								
							
						
					
					
						commit
						7c43d957bc
					
				| @ -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) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user