-
Notifications
You must be signed in to change notification settings - Fork 5
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
Protocol Review #60
Comments
Regarding 3, the spec says:
If the client should react to these messages with more than just an event, we should probably put that in the spec. What do you think? |
Regarding 6:
I agree. Not sure why I made that mistake. |
Regarding 7:
I agree. |
Regarding 8:
I believe this was an optimization to avoid having to lock the
That's also an option. Since the message type is a string, the task needs to handle unsupported types anyways. |
Agree it could be more precise. Filed saltyrtc/saltyrtc-meta#158. However, it should be clear that keeping a dangling instance makes no sense. |
I have reviewed most of the protocol-related code to get an overview of the Rust client implementation. I identified the following potential issues that may need addressing (some definitely do, some are more of a question).
It may make sense to treat this as an umbrella issue and file separate issues for each when they are being tackled.
Findings
0x00
indefinitely.saltyrtc-client-rs/src/protocol/mod.rs
Lines 1003 to 1030 in 5f35c42
saltyrtc-client-rs/src/protocol/mod.rs
Lines 1636 to 1664 in 5f35c42
saltyrtc-client-rs/src/protocol/mod.rs
Lines 1238 to 1250 in 5f35c42
saltyrtc-client-rs/src/protocol/mod.rs
Lines 1833 to 1845 in 5f35c42
saltyrtc-client-rs/src/protocol/mod.rs
Lines 1790 to 1826 in 5f35c42
saltyrtc-client-rs/src/protocol/mod.rs
Lines 1218 to 1235 in 5f35c42
saltyrtc-client-rs/src/protocol/mod.rs
Line 314 in 5f35c42
saltyrtc-client-rs/src/protocol/mod.rs
Lines 356 to 357 in 5f35c42
task_supported_types
seems unnecessary to me. The task should filter itself anyway.The above checkboxes shall be ticked if the issue has been confirmed, resolved and a fix, including a test, has been merged, or alternatively in case it has been identified as a non-issue in which case an explanation needs to be added.
Notes
Having reviewed the JS and Java client as well, Cpt. Hindsight says that we should avoid using separate functions for handling inbound messages. The dispatching logic depending on states has been a weak point in all three clients and made the control flow complicated to follow. Alternative solutions would have to be explored.
The text was updated successfully, but these errors were encountered: