forked from scylladb/seastar
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently rpc does not have any support for protocol negotiation. Client and server are expected to implement same protocol. This is not robust against protocol changes. This patch implement protocol features negotiation that can be used later to extend the protocol. The negotiation works by exchanging negotiation frame immediately after connection establishment. The negotiation frame looks like this: uint8_t magic[8] = SSTARRPC uint32_t required_features_mask uint32_t optional_features_mask uint32_t len uint8_t data[len] Actual negotiation looks like this: Client Server --------------------------------------------------------- send negotiation frame recv frame check magic (disconnect on error) check required (disconnect on error) send negotiation frame back recv frame
- Loading branch information
Gleb Natapov
committed
Dec 28, 2015
1 parent
e8afec0
commit 53068ce
Showing
3 changed files
with
132 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters