-
Notifications
You must be signed in to change notification settings - Fork 20
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
120: Support protocol v2 #119
Conversation
The purpose of the ticket is to support v2, protocol negotiation in the control connection is just a part of it so I suggest modifying the name of the PR. There's another part that is missing here which is modifying the maximum number of stream ids and that part might be more tricky and will require you to deep dive a bit more into the other part of the codebase (cluster connector, client connector, client handler). Modifying the number of stream ids in the control connection is probably not hard and it's on the part of the code that you're already working with so you can start there. But we also need to set the max number of stream ids based on the protocol version on the non control connections too. At the moment there's a config setting for it that defaults to 2048 but with v2 the connection only supports up to 128 stream ids. |
Also we should make sure we have tests covering v2 protocol to validate this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, left some comments.
Also, the stream ids are still left unchanged, we need to override the max stream ids config setting when it's v2 in case it's above what v2 supports. And need a test for it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests look really good 👍
fix #120