-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[browser][http] Fix blocking of streaming response and abort #80693
Conversation
- return bytes of streaming response as soon as available
Tagging subscribers to 'arch-wasm': @lewing |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I don't have any more ideas for improvement.
@hakenr, would you please have time to test it ? |
@pavelsavara Yes, I'm happy to test it, I just don't know how to get the new version into my own project. Yes, I'm happy to test it, I just don't know how to get the new version into my own project. Can you please direct me where I can find some instructions? |
I will have to figure it out. My naive attempt to use net8 runtime in net7 blazor project didn't work. There are NodeJS CI failures which I need to handle first. Will ping you again, thanks! |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
/backport to release/7.0 |
Started backporting to release/7.0: https://github.com/dotnet/runtime/actions/runs/3960939369 |
@pavelsavara backporting to release/7.0 failed, the patch most likely resulted in conflicts: $ git am --3way --ignore-whitespace --keep-non-patch changes.patch
Applying: - fix unhandled error in reader.cancel() promise
Applying: free reader
Applying: fix + test
Applying: test
Applying: test
Applying: feedback
Applying: new test for streaming abort
error: sha1 information is lacking or useless (src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.cs).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0007 new test for streaming abort
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128 Please backport manually! |
@pavelsavara an error occurred while backporting to release/7.0, please check the run log for details! Error: git am failed, most likely due to a merge conflict. |
…80693) - return bytes of streaming response as soon as available - fix unhandled error in reader.cancel() promise - return cancelable promise from http_wasm_get_streamed_response_bytes - unit test for slowly streamed chunks - unit test for streaming and default cancellation
- return bytes of streaming response as soon as available - fix unhandled error in reader.cancel() promise - return cancelable promise from http_wasm_get_streamed_response_bytes - unit test for slowly streamed chunks - unit test for streaming and default cancellation
- return bytes of streaming response as soon as available - fix unhandled error in reader.cancel() promise - return cancelable promise from http_wasm_get_streamed_response_bytes - unit test for slowly streamed chunks - unit test for streaming and default cancellation
http_wasm_get_streamed_response_bytes
Fixes #79238
Fixes #80696
Should be merged back to Net7