Add missing .ConfigureAwait(false) in HttpConnectionPool (dotnet/corefx#38610)
authorStephen Toub <stoub@microsoft.com>
Mon, 17 Jun 2019 20:25:38 +0000 (16:25 -0400)
committerGitHub <noreply@github.com>
Mon, 17 Jun 2019 20:25:38 +0000 (16:25 -0400)
Commit migrated from https://github.com/dotnet/corefx/commit/3b2707b4b672af99d9d7ac3d57352099f1ff3ff1

src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs

index 3c19f2d..4173ce6 100644 (file)
@@ -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<HttpResponseMessage> SendWithRetryAsync(HttpRequestMessage request, bool doRequestAuth, CancellationToken cancellationToken)