-
Notifications
You must be signed in to change notification settings - Fork 204
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
incorrect error code used for invalid RETIRE_CONNECTION_ID frames #3860
Comments
Seems OK. |
As the proposed PR indicates, this would be a design change. |
Agreed, this seems OK. |
As I noted in the PR, I agree that PROTOCOL_VIOLATION seems like a more appropriate error. In addition to @marten-seemann's point, this is a semantic error, not one of encoding (which suggests syntactic). |
It seems we have a proposed resolution, marking as such. |
PR #3042 was less than a year ago, that's when this error code went from PROTOCOL_VIOLATION to FRAME_ENCODING_ERROR |
Our principle regarding error codes states that only those errors that are detectable without accessing connection state should result in a FRAME_ENCODING_ERROR. Since the RETIRE_CONNECTION_ID frame contains only the sequence number of the connection ID, but not the actual connection ID itself, this should be a different error.
Looking through the list of error codes, it seems like we don't have any more specific error code here, so this would be a PROTOCOL_VIOLATION.
The text was updated successfully, but these errors were encountered: