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

Websocket remains open after server is suspended #5281

Open
3 tasks done
Roolps opened this issue Jan 24, 2025 · 0 comments
Open
3 tasks done

Websocket remains open after server is suspended #5281

Roolps opened this issue Jan 24, 2025 · 0 comments
Labels
not confirmed Report seems plausible but requires additional testing or 3rd part confirmation.

Comments

@Roolps
Copy link

Roolps commented Jan 24, 2025

Current Behavior

Both on the panel and through the API, the websocket connection appears to remain open after a server has been suspended for around 10 minutes, until the auth token expires and it requests a new one and of course is unable to authenticate. This is the error received through the API at this point: {"event":"jwt error","args":["jwt: exp claim is invalid"]}

Expected Behavior

An event which would be received through the socket for status update stating that the server is suspended, followed by the socket connection closing.

Steps to Reproduce

Option A (through the panel)

  • Open the console of a server
  • Open the same server in the admin area in a different tab
  • Suspend said server in the admin tab and go back to the console tab
  • The socket remains open, this can be seen in dev tools under the Network tab

Option B (through the API)

Panel Version

1.11.7

Wings Version

1.11.7

Games and/or Eggs Affected

No response

Docker Image

No response

Error Logs

Is there an existing issue for this?

  • I have searched the existing issues before opening this issue.
  • I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server.
  • I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.
@Roolps Roolps added the not confirmed Report seems plausible but requires additional testing or 3rd part confirmation. label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not confirmed Report seems plausible but requires additional testing or 3rd part confirmation.
Projects
None yet
Development

No branches or pull requests

1 participant