Add catch for ConnectionAborted in Http3#93049
Conversation
|
Tagging subscribers to this area: @dotnet/ncl Issue DetailsI don't have a good repro but according to the stack trace, it feels like Fixes #92359
|
Could you expand on that a bit more so I can fully understand the sequence of events that could cause this? |
AFAIU, when we finished the serverTask |
CloseAsync is awaited, so we're waiting for the SHUTDOWN_COMPLETE event for the connection
Dispose won't do anything if close was already called, if not, it will do the same thing as CloseAsync called with default connection close error code. Also "connection aborted by peer" is what you will get when you call CloseAsync so that should be expected: So I think your premise is not correct and there's more to it. |
It wasn't actually a race between, closing, etc. Since we're keeping the first exception in _abortException, we're returning that and in some cases, we weren't actually wrapping
ConnectionAbortwithHttpProtocolException, and it was resulting in throwing aQuicException.Fixes #92359