[QUIC] Listener AcceptConnectionAsync propagates errors from failed handshake (#72390)
authorMarie Píchová <11718369+ManickaP@users.noreply.github.com>
Tue, 19 Jul 2022 10:29:41 +0000 (12:29 +0200)
committerGitHub <noreply@github.com>
Tue, 19 Jul 2022 10:29:41 +0000 (12:29 +0200)
commitc6f538e5c1eb4c2472d043bf835936aa4f372ff2
treeff67b9c1e63a91bc15ff39cbd432b732eb630a9b
parentd62f2d27bb14abe9341be1a6cf5dbfd071fd862b
[QUIC] Listener AcceptConnectionAsync propagates errors from failed handshake (#72390)

* Propagate exception from handshake to the caller of AcceptConnectionAsync

* ThrowsAnyAsync -> ThrowsAsync for QuicException since there's no hierarchy anymore

* Added tests

* Feedback
src/libraries/System.Net.Quic/src/System/Net/Quic/QuicListener.PendingConnection.cs
src/libraries/System.Net.Quic/src/System/Net/Quic/QuicListener.cs
src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs
src/libraries/System.Net.Quic/tests/FunctionalTests/MsQuicCipherSuitesPolicyTests.cs
src/libraries/System.Net.Quic/tests/FunctionalTests/MsQuicTests.cs
src/libraries/System.Net.Quic/tests/FunctionalTests/QuicConnectionTests.cs
src/libraries/System.Net.Quic/tests/FunctionalTests/QuicListenerTests.cs