Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reader.cancel will not stop fetch stream #648

Open
gongrongyun opened this issue Sep 5, 2023 · 0 comments
Open

reader.cancel will not stop fetch stream #648

gongrongyun opened this issue Sep 5, 2023 · 0 comments

Comments

@gongrongyun
Copy link

vConsole Version:

latest (v3.15.1)

problem:

stream will not be stopped after cancel, even if it return fulfilled, we can look to devtools - network panel to verify this problem

demo:

const res = await fetch(url)
const reader = res.body.getReader()
reader.cancel()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant