feat: Timeout for event_call events (#22222)

* Update main.py

* Update env.py

* Update main.py

* Update env.py
This commit is contained in:
Classic298
2026-03-04 16:39:53 -06:00
committed by GitHub
parent b081e33c0a
commit 4403c7b6c2
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -37,6 +37,7 @@ from open_webui.env import (
WEBSOCKET_SERVER_PING_INTERVAL,
WEBSOCKET_SERVER_LOGGING,
WEBSOCKET_SERVER_ENGINEIO_LOGGING,
WEBSOCKET_EVENT_CALLER_TIMEOUT,
)
from open_webui.utils.auth import decode_token
from open_webui.socket.utils import RedisDict, RedisLock, YdocManager
@@ -918,6 +919,7 @@ def get_event_call(request_info):
"data": event_data,
},
to=request_info["session_id"],
timeout=WEBSOCKET_EVENT_CALLER_TIMEOUT,
)
return response