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

WASM: Fix premature abort for streaming bodies #1782

Merged
merged 1 commit into from Mar 17, 2023

Conversation

jneem
Copy link
Contributor

@jneem jneem commented Mar 17, 2023

This fixes an oversight in #1755: when using the stream feature, the abort handle needs to be kept alive until the stream is finished, otherwise it will cancel prematurely.

I checked all the other by-value methods on Response and I think bytes_stream is the only affected one.

@seanmonstar seanmonstar changed the title Fix premature abort for streaming bodies WASM: Fix premature abort for streaming bodies Mar 17, 2023
Copy link
Owner

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@seanmonstar seanmonstar enabled auto-merge (squash) March 17, 2023 20:53
@seanmonstar seanmonstar merged commit df2b3ba into seanmonstar:master Mar 17, 2023
31 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants