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

potentially stale client spams server #348

Open
habys opened this issue Jul 27, 2024 · 0 comments
Open

potentially stale client spams server #348

habys opened this issue Jul 27, 2024 · 0 comments

Comments

@habys
Copy link

habys commented Jul 27, 2024

Describe the bug
After some amount of time, both the dev and release client, if left idle long enough (and maybe related to the laptop going to sleep and waking up) can no longer communicate correctly with the server, and spams the server with these errors:

Jul 26 22:38:49 server npm[4966]: [WebSocket] closed 4009

somewhere between 2-5 per second.

To Reproduce
Steps to reproduce the behavior:

  1. use either dev.app.spacebar.com or app.spacebar.com and connect a server
  2. wait long enough for the session to expire
  3. the client will no longer be able to send messages nor refresh the session
  4. you will see the error messages spam the server

Expected behavior
session either re-initializes, or if that is impossible, the client stops trying to connect to the server and informs the user to refresh the page or whatever is appropraite.

Console Logs

Jul 26 22:38:49 server npm[4966]: [WebSocket] closed 4009

System Information (please complete the following information):

  • OS: [e.g. Debian Linux, Arch Linux etc.]
  • Version (If not applicable skip): [e.g Ubuntu 22.04 LTS/Windows Server 2022]
  • Node Version: [e.g Node v18.7.0]

Env and Software info

  • server:
commit d3ece937e6e6e476610fc1d7eae085727d01ec95 (HEAD -> master, origin/master, origin/HEAD)
Author: TomatoCake <[email protected]>
Date:   Wed Jul 17 12:31:09 2024 +0200
  • Client : dev or not dev
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

No branches or pull requests

1 participant