Http2LoopbackConnection properly handles stream termination (#35100)
authorAlexander Nikolaev <55398552+alnikola@users.noreply.github.com>
Mon, 20 Apr 2020 13:32:54 +0000 (15:32 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Apr 2020 13:32:54 +0000 (15:32 +0200)
commitb0c2a66d0b1fe88d6923b82acd06463d153e1c8d
tree427fc83d18131d297010a078b344400bd85c34a0
parent2f24563eb76b6372c03b3e51af916c7a9316bd83
Http2LoopbackConnection properly handles stream termination (#35100)

PR adds an optional stream termination handling to `Http2LoopbackConnection.ReadBodyAsync` and fixes `HttpClient` construction missing the `SocketHttpHandler` created in the test.

Fixes #31220
src/libraries/Common/tests/System/Net/Http/Http2LoopbackConnection.cs
src/libraries/Common/tests/System/Net/Http/TestHelper.cs
src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http2.cs