Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 3b2707b

Browse files
authored
Add missing .ConfigureAwait(false) in HttpConnectionPool (#38610)
1 parent dd6b066 commit 3b2707b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ private ValueTask<HttpConnection> GetOrReserveHttp11ConnectionAsync(Cancellation
510510
}
511511

512512
// If we reach this point, it means we need to fall back to a (new or existing) HTTP/1.1 connection.
513-
return await GetHttpConnectionAsync(request, cancellationToken);
513+
return await GetHttpConnectionAsync(request, cancellationToken).ConfigureAwait(false);
514514
}
515515

516516
public async Task<HttpResponseMessage> SendWithRetryAsync(HttpRequestMessage request, bool doRequestAuth, CancellationToken cancellationToken)

0 commit comments

Comments
 (0)