[release/6.0-rc1] [HTTP/3] Abort response stream on dispose if content not finished...
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 24 Aug 2021 17:02:08 +0000 (11:02 -0600)
committerGitHub <noreply@github.com>
Tue, 24 Aug 2021 17:02:08 +0000 (11:02 -0600)
commit56fb662a62dcd780c5d0fbda510e2a80c877c627
tree19e7ae8807f94ac35b325e0d727e854e477db3ce
parent2b467205e62abe34ac13f98349da12485cc234ec
[release/6.0-rc1] [HTTP/3] Abort response stream on dispose if content not finished (#57999)

* Sends abort read/write if H/3 stream is disposed before respective contents are finsihed

* Minor tweaks in abort conditions

* Prevent reverting SendState from Aborted/ConnectionClosed back to sending state within Send* methods.

Co-authored-by: ManickaP <mapichov@microsoft.com>
Co-authored-by: Marie Píchová <11718369+ManickaP@users.noreply.github.com>
src/libraries/Common/tests/System/Net/Http/Http3LoopbackStream.cs
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http3RequestStream.cs
src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http3.cs
src/libraries/System.Net.Quic/src/System/Net/Quic/Implementations/MsQuic/MsQuicStream.cs