Repository navigation
Return correct response for unknown messages, add handler for unknown messages to Session (extends #112) - #114
Conversation
d10d6f0 to
b445171
Compare
c411825 to
a09599d
Compare
wiktor-k
left a comment
There was a problem hiding this comment.
Looks great IMO. We need a rebase on top of main for the CI to be green again 🍃
Signed-off-by: James Spencer <github@jcspencer.net>
0f8bff7 to
6ea0d27
Compare
* Document explictly which messages will be parsed as "Unknown", referencing the RFC. * Document default behaviour in `Session::unknown_message` trait method * Add roundtrip test case for `Unknown` request type with legacy message type Signed-off-by: James Spencer <github@jcspencer.net>
6ea0d27 to
8612f85
Compare
2c13dd9 to
8bd5ac7
Compare
…9987
Mark `{Request, Response}::message_id` methods as deprecated
Signed-off-by: James Spencer <github@jcspencer.net>
Signed-off-by: James Spencer <github@jcspencer.net>
8bd5ac7 to
714b506
Compare
|
Hi @wiktor-k, should be ready for review now! Probably best reviewed in commit order (sorry for the force pushes!) A bit of a summary of the updates:
In the places I've updated stuff here, I've updated references from the RFC draft to the ratified spec; I've opened #116 as a bit of a tracking issue to do the rest of these. Let me know if you have any issues, and feel free to cherry-pick off of this branch if there's later breaking commits you'd rather merge separately 😄 Thanks! |
wiktor-k
left a comment
There was a problem hiding this comment.
Looks good. Had only minor remarks. Thank you! 🙏
Signed-off-by: James Spencer <github@jcspencer.net>
|
Great, thanks @wiktor-k! Since there's a direct reference to a minor version bump, I'll let you decide how you want to approach the version bump (since I assume we'll bump soon once the rustcrypto packages are bumped too)? I'll follow this up with some changes around the RFC soon |
We definitely need a bump due to changes in here and elsewhere. As for RustCrypto it'd be ideal if we could align on that but last time I checked there were still some
🥳 |
This PR builds on the changes proposed by @cquintana92 in #112 (
fix: unknown request types should return failure)This:
Request::Unknownto include an payload of typeUnparsed.Session::unknown_message()method toSessiontrait to allow processing messages not known to the librarySee #112 for more information on the original issue.