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. |
||
|---|---|---|
| .. | ||
| config | ||
| core | ||
| models | ||
| music | ||
| performance_tester | ||
| plugins_func | ||
| agent-base-prompt.txt | ||
| app.py | ||
| config.yaml | ||
| config_from_api.yaml | ||
| docker-compose.yml | ||
| docker-compose_all.yml | ||
| mcp_server_settings.json | ||
| performance_tester.py | ||
| requirements.txt | ||