Skip to content

Conversation

@pavelsavara
Copy link
Member

@pavelsavara pavelsavara commented Jan 25, 2022

  • call ReadableStream.cancel on cancelationToken of WasmHttpReadStream.ReadAsync
  • call AbortController.abort when disposing WasmFetchResponse and WasmHttpReadStream
  • enable some of SocketsHttpHandler_HttpClientHandler_Http11_Cancellation_Test tests for Browser target
  • added WaitForClose to the LoopbackServer
  • added disconnect detection to RemoteLoopHandler
  • add unit test for the scenario

Fixes #64225

- add unit test for the scenario
@ghost
Copy link

ghost commented Jan 25, 2022

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details
  • call ReadableStream.cancel when disposing WasmHttpReadStream
  • call AbortController.abort when disposing WasmFetchResponse
  • add unit test for the scenario
Author: pavelsavara
Assignees: -
Labels:

arch-wasm, area-System.Net.Http, area-System.Runtime.InteropServices.JavaScript

Milestone: 7.0.0

@ghost ghost assigned pavelsavara Jan 25, 2022
@pavelsavara
Copy link
Member Author

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@danmoseley
Copy link
Member

One area- label only please, for labeler bot ..

- fixed few cancelation issues
@pavelsavara
Copy link
Member Author

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@pavelsavara pavelsavara changed the title [wasm] Cancel pending ReadableStream on Dispose [wasm] Cancel pending ReadableStream on Dispose or cancelationToken Jan 27, 2022
@pavelsavara
Copy link
Member Author

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@pavelsavara
Copy link
Member Author

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lewing
Copy link
Member

lewing commented Jan 28, 2022

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@pavelsavara pavelsavara merged commit 7de2905 into dotnet:main Jan 29, 2022
@lewing
Copy link
Member

lewing commented Feb 17, 2022

We've had another customer report of this in net6 should we consider servicing it?

@ghost ghost locked as resolved and limited conversation to collaborators Mar 19, 2022
@pavelsavara pavelsavara deleted the wasm_http_streaming_cancel branch July 14, 2022 20:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture area-System.Net.Http

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Blazor WebAssembly] Support for Cancelling HTTP Requests by Diposing Response Stream

7 participants