百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
返回工具页/返回 Issues 列表
#7357·adk-python

提前关闭直播事件流可能会在 `_merge_live_event_streams` 中永远卡死

作者: harshal-96创建于 2026年9月30日更新于 2026年10月1日

Required Information

Describe the Bug:

_merge_live_event_streams in src/google/adk/live/_runner_utils.py merges the live agent's events and the events queued on ic._event_queue into a one-slot queue, merged.

If the caller stops reading and closes the stream while merged holds an event, the cleanup in the merge's finally cancels _pump_queued_events. That pump's own finally then runs await merged.put(done_sentinel). Nothing reads merged anymore and the queue is full, so the put never finishes. The cleanup waits on the pump forever, and aclose() never returns.

内容来源: google/adk-python

查看 GitHub 原文在 GitHub 查看讨论