Skip to content

Fix bug with closing client before check#257

Merged
ravjotbrar merged 1 commit intomainfrom
close-metrics-bug
Mar 27, 2026
Merged

Fix bug with closing client before check#257
ravjotbrar merged 1 commit intomainfrom
close-metrics-bug

Conversation

@ravjotbrar
Copy link
Copy Markdown
Collaborator

@ravjotbrar ravjotbrar commented Mar 27, 2026

Description

This pull request fixes a critical bug in the /connection/close endpoint where the client was being closed before validating the connection ID.

The fix: Moves the client.close() call from the beginning of the endpoint handler to after the validation check. This ensures that the request is validated against the valid connectionId first and invalid requests don't close clients.

Signed-off-by: Ravjot Brar <ravjot.brar@improving.com>
@ravjotbrar ravjotbrar merged commit 0340d3f into main Mar 27, 2026
7 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