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 virtual listener: don't panic when quic-go's accept call errors #2276

Merged
merged 1 commit into from
May 9, 2023

Conversation

MarcoPolo
Copy link
Collaborator

closes #2259

This doesn't add any extra logging. That's a bit bigger of a change so I'll do that in another PR.

@MarcoPolo MarcoPolo requested a review from marten-seemann May 8, 2023 19:37
@@ -68,6 +69,11 @@ func (r *acceptLoopRunner) RmAcceptForVersion(v quic.VersionNumber) {
r.muxerMu.Lock()
defer r.muxerMu.Unlock()

if r.muxerClosed {
// Already closed, all versions are removed
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this an error-specific closing that basically indicates a failed start? If so maybe document/name it like that.

If so, does this mean that Accept should be modified as well? Want to make sure we don't end up in a position where we can keep calling accept but not RmAccept.

Copy link
Contributor

Choose a reason for hiding this comment

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

We see the situation that quic-go's Accept sometimes errors on Windows machines. It might or might not be related to quic-go/quic-go#1737. I don't have a Windows machine, so I can't really debug this. Also, I care more about other OSes ;)

There should probably be some logging, but I'm fine adding this in a later PR.

@marten-seemann marten-seemann changed the title quic virtual listener: Don't remove muxer if closed quic virtual listener: don't panic when quic-go's accept call errors May 9, 2023
@marten-seemann marten-seemann merged commit 3e87ca0 into master May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

quic: panic on error in listener Accept
3 participants