Skip to content

Commit

Permalink
HttpIOException when establishing connection, unobserved task excepti…
Browse files Browse the repository at this point in the history
…on (#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>
  • Loading branch information
pedrobsaila and MihaZupan authored Jun 13, 2024
1 parent 2a0162b commit b4f750f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ private async Task ProcessIncomingFramesAsync()
catch (Exception e)
{
InitialSettingsReceived.TrySetException(new HttpIOException(HttpRequestError.InvalidResponse, SR.net_http_http2_connection_not_established, e));
LogExceptions(InitialSettingsReceived.Task);
throw new HttpIOException(HttpRequestError.InvalidResponse, SR.net_http_http2_connection_not_established, e);
}

Expand Down

0 comments on commit b4f750f

Please sign in to comment.