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

tcpreuse: fix Scope() for *tls.Conn #3181

Merged
merged 3 commits into from
Feb 12, 2025
Merged

Conversation

sukunrt
Copy link
Member

@sukunrt sukunrt commented Feb 11, 2025

Yet another interface embedding bug 😭

@sukunrt sukunrt requested a review from MarcoPolo February 11, 2025 12:42
@sukunrt sukunrt force-pushed the sukun/websocket-tcpreuse-scope branch from ac4f0cb to 87125fc Compare February 11, 2025 12:44
@@ -17,6 +17,11 @@ func (c connWithScope) Scope() network.ConnManagementScope {
return c.scope
}

func (c *connWithScope) Close() error {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is required for failures in the http tls handshake for wss. The http server closes the connection when handshake fails.

Copy link
Collaborator

@MarcoPolo MarcoPolo left a comment

Choose a reason for hiding this comment

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

Approving because this lets us fix this specific issue in a patch release.

The real fix should be in #3182

@sukunrt sukunrt merged commit 427ea4b into master Feb 12, 2025
9 checks passed
sukunrt added a commit that referenced this pull request Feb 12, 2025
sukunrt added a commit that referenced this pull request Feb 12, 2025
sukunrt added a commit that referenced this pull request Feb 12, 2025
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.

2 participants