-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add InvokeMetadata message and reserve control bit
We need a way to send Metadata for an invoke such that older servers will be able to read newer clients, so they must ignore the metadata. Foruntately, when reading for a new Invoke, we ignore any packets that are not of kind Invoke. That means that newer clients can send whatever they want before the Invoke like metadata. It also reserves a bit of the control byte so that after everything is all rolled out, we can use it if necessary to extend the protocol. The current implementation will drop any frames that have the control bit set, so that we can send arbitrary data without future older clients breaking. Change-Id: I51f007f9ef71e5f4e3f5ec2a83d1f61c69528454
- Loading branch information
Showing
8 changed files
with
83 additions
and
36 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module storj.io/drpc | ||
|
||
go 1.12 | ||
go 1.14 | ||
|
||
require ( | ||
github.com/gogo/protobuf v1.2.1 | ||
|