From: Stephen Toub Date: Mon, 17 Jun 2019 20:25:38 +0000 (-0400) Subject: Add missing .ConfigureAwait(false) in HttpConnectionPool (dotnet/corefx#38610) X-Git-Tag: submit/tizen/20210909.063632~11031^2~1266 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a26d63e4b1a4ae6e085446aac45cd9dc38944a1;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Add missing .ConfigureAwait(false) in HttpConnectionPool (dotnet/corefx#38610) Commit migrated from https://github.com/dotnet/corefx/commit/3b2707b4b672af99d9d7ac3d57352099f1ff3ff1 --- diff --git a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs index 3c19f2d..4173ce6 100644 --- a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs +++ b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs @@ -510,7 +510,7 @@ namespace System.Net.Http } // If we reach this point, it means we need to fall back to a (new or existing) HTTP/1.1 connection. - return await GetHttpConnectionAsync(request, cancellationToken); + return await GetHttpConnectionAsync(request, cancellationToken).ConfigureAwait(false); } public async Task SendWithRetryAsync(HttpRequestMessage request, bool doRequestAuth, CancellationToken cancellationToken)