Skip to content

代理流提前断开时 result() 会一直卡住 #147

Description

@AnxForever

What do you want to change?

代理请求的 SSE 连接如果在 doneerror 事件之前断开,streamProxy() 会结束事件流,但 stream.result() 会一直等。我想让这种情况返回一个错误事件。

Why?

调用方等最终结果时会卡住。用一个只发 start 就断开的模拟响应就能复现。

How? (optional)

本地已经加了检查和回归测试,npm run check 和相关测试都过了。如果这个方向可以做,麻烦回个 lgtm,我再提 PR。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions