Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix data race on locally closing the connection
  • Loading branch information
rzikm committed Apr 22, 2022
commit 79ce72b09d3b2bd46f61fc69a90c043563e57a2d
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ public async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, lon
}
}
}
// Swallow any exceptions caused by the connection being closed locally or even disposed due to a race.
// Since quicStream will stay `null`, the code below will throw appropriate exception to retry the request.
catch (ObjectDisposedException) { }
catch (QuicException e) when (!(e is QuicConnectionAbortedException)) { }
finally
{
if (HttpTelemetry.Log.IsEnabled() && queueStartingTimestamp != 0)
Expand Down