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

Use weak refs between WebSockets in a WebSocketPair #2161

Merged
merged 1 commit into from
May 24, 2024

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented May 24, 2024

Breaks the strong ref cycle between the two WebSockets in a WebSocketPair.

Aso, while at it, add a missing visitForGc impl to WebSocket to make sure the stored error, if any, is traced.

@jasnell jasnell requested review from a team as code owners May 24, 2024 18:58
Copy link
Contributor

@MellowYarker MellowYarker left a comment

Choose a reason for hiding this comment

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

Thanks, James!

@jasnell jasnell force-pushed the jsnell/fixup-websocket-ref-cycle branch 2 times, most recently from 9f2bc8f to b896484 Compare May 24, 2024 20:31
Breaks the strong ref cycle between the two WebSockets in a
WebSocketPair.

Aso, while at it, add a missing visitForGc impl to WebSocket
to make sure the stored error, if any, is traced.
@jasnell jasnell force-pushed the jsnell/fixup-websocket-ref-cycle branch from b896484 to 6fe51b1 Compare May 24, 2024 20:53
@jasnell jasnell merged commit 1d89f3b into main May 24, 2024
10 checks passed
@jasnell jasnell deleted the jsnell/fixup-websocket-ref-cycle branch May 24, 2024 21:16
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.

4 participants