Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUIC] Listener AcceptConnectionAsync propagates errors from failed handshake #72390

Merged
merged 4 commits into from
Jul 19, 2022

Conversation

ManickaP
Copy link
Member

If there was a validation error with QuicServerConnectionOptions or a failure during ConnectionOptionsCallback or a handshake failure, it will no get propagated from AcceptConnectionAsync. Originally, that error would get just logged and swallowed, so that if listener user made a mistake they would have a hard time diagnosing it.

Fixes #72160

@ManickaP ManickaP requested review from rzikm and wfurt and removed request for rzikm July 18, 2022 18:59
@ghost ghost assigned ManickaP Jul 18, 2022
@ghost
Copy link

ghost commented Jul 18, 2022

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

Issue Details

If there was a validation error with QuicServerConnectionOptions or a failure during ConnectionOptionsCallback or a handshake failure, it will no get propagated from AcceptConnectionAsync. Originally, that error would get just logged and swallowed, so that if listener user made a mistake they would have a hard time diagnosing it.

Fixes #72160

Author: ManickaP
Assignees: -
Labels:

area-System.Net.Quic

Milestone: -

@ManickaP ManickaP requested a review from CarnaViire July 18, 2022 18:59
Copy link
Member

@rzikm rzikm left a comment

Choose a reason for hiding this comment

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

LGTM, appart from minor change.

@ManickaP
Copy link
Member Author

Failure is #72429

@ManickaP ManickaP merged commit c6f538e into dotnet:main Jul 19, 2022
@ManickaP ManickaP deleted the mapichov/quic-accept-connection-throws branch July 19, 2022 10:29
@karelz karelz added this to the 7.0.0 milestone Aug 7, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Sep 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QUIC: DefaultStreamErrorCode and DefaultCloseErrorCode default values cause error
3 participants