Skip to content

Commit b4f750f

Browse files
HttpIOException when establishing connection, unobserved task exception (#102960)
* HttpIOException when establishing connection, unobserved task exception * do not eagerly allocate InitialSettingsReceived * Update src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2Connection.cs --------- Co-authored-by: Miha Zupan <mihazupan.zupan1@gmail.com>
1 parent 2a0162b commit b4f750f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ private async Task ProcessIncomingFramesAsync()
503503
catch (Exception e)
504504
{
505505
InitialSettingsReceived.TrySetException(new HttpIOException(HttpRequestError.InvalidResponse, SR.net_http_http2_connection_not_established, e));
506+
LogExceptions(InitialSettingsReceived.Task);
506507
throw new HttpIOException(HttpRequestError.InvalidResponse, SR.net_http_http2_connection_not_established, e);
507508
}
508509

0 commit comments

Comments
 (0)