mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-01 17:00:21 +08:00
上游 httpx.StreamClosed/HTTPError 发生时,若已向客户端输出数据则 best-effort flush 残留 SSE 并标记 502 结束流,保证 StreamingResponse 背景任务正常执行;若尚未输出则 re-raise 以触发 failover。