panel icon indicating copy to clipboard operation
panel copied to clipboard

Websocket remains open after server is suspended

Open Roolps opened this issue 10 months ago • 1 comments

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?

  • [x] I have searched the existing issues before opening this issue.
  • [x] 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.
  • [x] 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 avatar Jan 24 '25 15:01 Roolps

Tested using 1.11.10, websocket does remain open during and after shutdown. In fact, the server console refreshed the connection and kept the new one alive. Refreshing the page gives the expected error, but nothing is displayed on the screen to indicate as such aside from a loading animation.

jascotty2 avatar Feb 14 '25 21:02 jascotty2

wtf

RealmiRoblox avatar Jun 22 '25 12:06 RealmiRoblox