You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, specifically I found this while testing Panel 1.5.0rc2 on Windows 10.
Launch any panel app with 'admin=True', open the admin panel in a tab, then close the tab and check server console. It will be spammed with unhandled write exceptions to closed websocket (from periodic_callbacks) and the sessions will never be cleaned up either.
Handling of detecting when the websockets close is bugged at the moment, sessions are never cleaned up because of it.
Here are a couple patches that fix the issue:
handler.py
receive does not raise when the socket is closed normally, but starlette has a private helper function to do so
send_text and send_bytes do raise, they just needed to be put in a try block
The text was updated successfully, but these errors were encountered: