代理流提前断开时 result() 会一直卡住
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 65/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- node.js, typescript
调研方向
Look for the streamProxy() and stream.result() methods in the codebase, likely in a file handling proxy or SSE connections. The issue mentions a local fix and passing npm run check and related tests. Start by running the existing tests to understand the failure case, then examine the event flow for early disconnects. The goal is to ensure result() returns an error instead of hanging when the proxy stream disconnects before done or error events.
由索引模型根据 Issue 内容生成。
描述
What do you want to change?
代理请求的 SSE 连接如果在 done 或 error 事件之前断开,streamProxy() 会结束事件流,但 stream.result() 会一直等。我想让这种情况返回一个错误事件。
Why?
调用方等最终结果时会卡住。用一个只发 start 就断开的模拟响应就能复现。
How? (optional)
本地已经加了检查和回归测试,npm run check 和相关测试都过了。如果这个方向可以做,麻烦回个 lgtm,我再提 PR。
- 主要语言
- TypeScript
- 星标
- 54
- 派生
- 20
- 平均合并
- 4 小时 1 分钟
- 30 天内合并 PR
- 12
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
stepfun-ai/Step-Code 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
stepfun-ai/Step-Code#190 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
stepfun-ai/Step-Code#186 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
stepfun-ai/Step-Code#185 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
stepfun-ai/Step-Code#184 ·
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
stepfun-ai/Step-Code#179 · 1 条评论 ·
查看 stepfun-ai/Step-Code 的全部 Issue
相似的 Issue
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
-
Crush 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
catppuccin/catppuccin#3125 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
ElementsProject/cln-application#167 · 1 条评论 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 75/100
Quantco/pnpm-licenses#17 ·
-
难度 2/5 1-3 小时 新手友好度 75/100