Remove the version handshake from the RPC protocol#1775
Remove the version handshake from the RPC protocol#1775gpetiot wants to merge 3 commits intoocaml-ppx:mainfrom gpetiot:rpc-no-version
Conversation
Julow
left a comment
There was a problem hiding this comment.
I'm in favor but I don't see what it's helping in the linked Mdx PR ?
However, I think the rpc API must be versioned (even if we support one version at a time), mainly to allow clients to support several versions of the protocol.
Is it reasonable to send from the server a message containing the version of the protocol as soon as the client connects ? Otherwise, we'll still need the version command for that.
Actually, I think we should keep the I agree that the server doesn't need to support several versions of the client. If it really needs to be simplified, what about:
|
|
I don't remember all the details but I think what happened for our |
This simplifies the RPC protocol by removing the whole "version handshake" part, the old `Version is not a command anymore but if some software used the csexp representation of the version command it will just get ignored.
This is necessary for the usecase that mdx has for ocamlformat-rpc (realworldocaml/mdx#335)