Quic Abort after Dispose is no-op (#57318)
authorNatalia Kondratyeva <knatalia@microsoft.com>
Fri, 13 Aug 2021 12:19:46 +0000 (14:19 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Aug 2021 12:19:46 +0000 (14:19 +0200)
commitd67efc5e5da152e112c3823c67e23ddd61763f20
tree88f3f5eac2c570dd9fe14931a2ca88e0c7276c86
parent60ee283cdd24f5343f7d837cf9141303e3b98971
Quic Abort after Dispose is no-op (#57318)

Allow calling Abort(Read|Write) after disposing. The only safe option to do so is to make them no-op in that case.

Fixes #56683
src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http3.cs
src/libraries/System.Net.Quic/src/System/Net/Quic/Implementations/MsQuic/MsQuicStream.cs
src/libraries/System.Net.Quic/tests/FunctionalTests/QuicStreamTests.cs