[release/6.0] Remove two async state machines for typical HTTP/1.1 request path ...
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Mon, 30 Aug 2021 02:14:17 +0000 (22:14 -0400)
committerGitHub <noreply@github.com>
Mon, 30 Aug 2021 02:14:17 +0000 (22:14 -0400)
commitf4e10ed452a25b0e31eaa7b3235d797d80953870
treeeca18cf65514ccbc4daabb1d10c3e07f84f0953a
parent6493e838ed517d06a14a9130990020c35c7bbd54
[release/6.0] Remove two async state machines for typical HTTP/1.1 request path (#58252)

* Remove two async state machines for typical HTTP/1.1 request path

* Remove unused doRequestAuth parameter for HTTP/2 and HTTP/3

* Inline HTTP/1.x handling into SendWithRetryAsync

* Inline HTTP/2 as well

* Add back assert

Co-authored-by: Stephen Toub <stoub@microsoft.com>
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/AuthenticationHelper.cs
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs