Skip to content

feat: improve socket server connection handling and cleanup#4618

Merged
chenjiahan merged 3 commits intomainfrom
socket_server_close_0221
Feb 21, 2025
Merged

feat: improve socket server connection handling and cleanup#4618
chenjiahan merged 3 commits intomainfrom
socket_server_close_0221

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Improve socket server connection handling and cleanup to avoid potential memory leaks:

  • Call this.wsServer.close when closing the ws server.
  • Reset all properties when closing the ws server.
  • Use setTimeout instead of setInternal for heartbeats checking.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 21, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit bdd5d03
🔍 Latest deploy log https://app.netlify.com/sites/rsbuild/deploys/67b8180686dbe60008364d67
😎 Deploy Preview https://deploy-preview-4618--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 49 (🔴 down 11 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@chenjiahan chenjiahan enabled auto-merge (squash) February 21, 2025 06:09
@chenjiahan chenjiahan merged commit bfcb124 into main Feb 21, 2025
9 of 11 checks passed
@chenjiahan chenjiahan deleted the socket_server_close_0221 branch February 21, 2025 06:18
@chenjiahan chenjiahan mentioned this pull request Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants