diff --git a/backend/onyx/server/query_and_chat/chat_backend.py b/backend/onyx/server/query_and_chat/chat_backend.py index 0e0bdd1f4b47..ae55238984ae 100644 --- a/backend/onyx/server/query_and_chat/chat_backend.py +++ b/backend/onyx/server/query_and_chat/chat_backend.py @@ -355,7 +355,7 @@ async def is_connected(request: Request) -> Callable[[], bool]: def is_connected_sync() -> bool: future = asyncio.run_coroutine_threadsafe(request.is_disconnected(), main_loop) try: - is_connected = not future.result(timeout=0.01) + is_connected = not future.result(timeout=0.05) return is_connected except asyncio.TimeoutError: logger.error("Asyncio timed out")