mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-01-06 16:50:11 +01:00
Prevent websocket from disconnecting
This commit is contained in:
parent
fbcd32988e
commit
88cdf6ed3d
|
|
@ -56,7 +56,7 @@ async def _handle_connection(websocket, path):
|
|||
|
||||
|
||||
async def _run(host: str, port: int):
|
||||
async with serve(_handle_connection, host, port):
|
||||
async with serve(_handle_connection, host, port, ping_interval=None):
|
||||
await asyncio.Future() # run forever
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue