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

Do not remove the session manually #939

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

sambarza
Copy link
Contributor

Description

Session handling is already managed centrally. Closing a session raises the WebSocketDisconnect exception, which is already handled in websocket.websocket_endpoint.

Additionally, removing the session here could obscure potential issues. For now, I suggest not removing the session, as this can help identify other unknowns.

Related to issue #915 and pull request #936

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

The handling of the session is already handled centrally.
Closing of a sessions raises the exception WebSocketDisconnect that is already handled in websocket.websocket_endpoint

More, removing the session here from the stray, could hide possible unknown.
For now I suggest to not remove the session, this can help to spots others unknown.
@pieroit pieroit merged commit e998c58 into cheshire-cat-ai:develop Oct 18, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants