-
Notifications
You must be signed in to change notification settings - Fork 41
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(DHT): NET-1436: Cut off connections to all application versions before v102.0.0 #3053
base: main
Are you sure you want to change the base?
Conversation
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.
Could we have two separate enums: UNSUPPORTED_PROTOCOL_VERSION
(i.e. the current) and new UNSUPPORTED_APPLICATION_VERSION
? It would give us more detailed information why a handshake fails.
We could but older versions would not support the new failing UNSUPPORTED_APPLICATION_VERSION error. The behavior on how to handle unsupported version is the same for both cases so there is no requirement to add the new field to break backwards compatibility @teogeb |
What would happen in practice if a new client would send an error code |
Don't know for sure but I would expect that the connection will eventually be cleaned up after a timeout. But there could be some undefined behavior that leads to problems |
Summary
Cut off connections to all application versions before v102.0.0
Changes
UNSUPPORTED_PROTOCOL_VERSION
->UNSUPPORTED_VERSION
. Version incompatibilities are handled similarly between protocol and application versions.