mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
Two cross-thread future.result() calls had no timeout, so a stalled dependency blocked the thread indefinitely with no recovery: - connection.py: a hung memory backend froze the chat thread during query_memory(). - tts/base.py: a stalled WebSocket send froze the audio priority thread in sendAudioMessage(). Add a 30s timeout and explicit TimeoutError handling at both sites. On timeout the failure is logged and the loop proceeds (memory falls back to None; the audio frame is skipped) instead of deadlocking. The tool-call fan-in already uses tool_call_timeout, so it is left unchanged. |
||
|---|---|---|
| .. | ||
| api | ||
| handle | ||
| providers | ||
| utils | ||
| auth.py | ||
| connection.py | ||
| http_server.py | ||
| websocket_server.py | ||