Skip to content

[release/6.0] [QUIC] Fixed exception type for ConnectionShutdownInitiatedByTransport - #60244

Merged
danmoseley merged 1 commit into
release/6.0from
backport/pr-60181-to-release/6.0
Oct 12, 2021
Merged

[release/6.0] [QUIC] Fixed exception type for ConnectionShutdownInitiatedByTransport#60244
danmoseley merged 1 commit into
release/6.0from
backport/pr-60181-to-release/6.0

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Oct 11, 2021

Copy link
Copy Markdown
Contributor

Backport of #60181 to release/6.0

Fixes#60133

In case of a shutdown by a transport we would throw QuicOperationAbortedException out of AcceptStreamAsync, which would wrongly imply that it was our side who initiated the connection shutdown.
This is a quick safe fix to make the logic throw QuicConnectionAbortedException instead.

/cc @ManickaP

Customer Impact

Kestrel runs into retry loop in all HTTP/3 end-to-end scenarios with browsers. As a result, it will consume lots of CPU and request response time increases -- basically DoS.

Testing

Manually confirmed it fixes the issue.
Fix also confirmed by the Kestrel team cc @sebastienros

Risk

Very low, S.N.Quic is isolated to HTTP/3 scenarios only. Fix changes only type of the exception thrown, not when and why.

cc: @JamesNK@adityamandaleeka@karelz

@ghostghost added the area-System.Net label Oct 11, 2021
@ghost

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #60181 to release/6.0

/cc @ManickaP

Customer Impact

Testing

Risk

Author:github-actions[bot]
Assignees:-
Labels:

area-System.Net

Milestone:-

@adityamandaleekaadityamandaleeka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@karelzkarelz added the Servicing-consider Issue for next servicing release review label Oct 12, 2021
@danmoseleydanmoseley added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Oct 12, 2021
@danmoseley
danmoseley merged commit dcc4be5 into release/6.0Oct 12, 2021
@danmoseley
danmoseley deleted the backport/pr-60181-to-release/6.0 branch October 12, 2021 17:35
@ghostghost locked as resolved and limited conversation to collaborators Nov 11, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.NetServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@adityamandaleeka@CarnaViire@karelz@danmoseley@ManickaP