8000 chore: rework RPC version negotiation by deansheather · Pull Request #15687 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

chore: rework RPC version negotiation #15687

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

Merged
merged 5 commits into from
Dec 4, 2024
Merged

Conversation

deansheather
Copy link
Member

Changes the RPC header format from codervpn <version> <role> to codervpn <role> <version1,version2,...>.

The versions list is a list of the maximum supported minor version for each major version, sorted by major versions.

E.g. 1.0,2.3,3.1 means 1.0, 2.0, 2.1, 2.2, 2.3, 3.0, 3.1 are supported.

When we eventually support multiple versions, the peer's version list will be compared against the current supported versions list to determine the maximum major and minor version supported by both peers.

Closes #15601

Changes the RPC header format from `codervpn <version> <role>` to
`codervpn <role> <version1,version2,...>`.

The versions list is a list of the maximum supported minor version for
each major version, sorted by major versions.

E.g. `1.0,2.3,3.1` means `1.0, 2.0, 2.1, 2.2, 2.3, 3.0, 3.1` are
supported.

When we eventually support multiple versions, the peer's version list
will be compared against the current supported versions list to
determine the maximum major and minor version supported by both peers.
Copy link
Member
@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

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

I don't have any blocking comments after reading, deferring approval to Ethan/Spike 👍

@deansheather deansheather enabled auto-merge (squash) December 4, 2024 04:34
@deansheather deansheather merged commit 14a6030 into main Dec 4, 2024
30 checks passed
@deansheather deansheather deleted the dean/rpc-version-rework branch December 4, 2024 09:38
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.

VPN RPC protocol does not have good support for version negotiation
3 participants
0