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

feat: emit an error reason before closing websocket #7390

Merged

Conversation

swist
Copy link
Member

@swist swist commented Apr 16, 2021

Description

Reasons for closing websocket are limited to 123 bytes.
We can, however, emit a final message before closing the
socket - we're using that here to send a non-truncated
version of the error to display in the UI

Reviewer checklist

  • [] Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

@swist swist requested a review from a team as a code owner April 16, 2021 15:09
@ghost
Copy link

ghost commented Apr 16, 2021

@confluentinc It looks like @swist just signed our Contributor License Agreement. 👍

Always at your service,

clabot

Copy link
Contributor

@tolgadur tolgadur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@swist swist force-pushed the kci-265/emit-non-truncated-query-errors branch 5 times, most recently from 23d647e to 4b7d1cc Compare April 21, 2021 08:28
Reasons for closing websocket are limited to 123 bytes.
We can, however, emit a final message before closing the
socket - we're using that here to send a non-truncated
version of the error to display in the UI
@swist swist force-pushed the kci-265/emit-non-truncated-query-errors branch from 4b7d1cc to ec96853 Compare April 21, 2021 10:57
@swist swist merged commit c2d9372 into confluentinc:master Apr 21, 2021
@swist swist deleted the kci-265/emit-non-truncated-query-errors branch April 21, 2021 15:51
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