Skip to content
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

[BUG] handshake.rs:270:47 called Result::unwrap() on an Err value: OldSeq #53

Closed
honnisha opened this issue Sep 23, 2023 · 2 comments
Closed
Labels
Bug Something isn't working Complete The code review for this issue has been completed; and is now being finalized.

Comments

@honnisha
Copy link

When running the async-std example, the client throws an error when connecting

version = "0.3.1"

Client (only ip was changed from "na.zeqa.net:19132"):

[rakrs] DBG! [CLIENT] Attempting to connect to address: 0.0.0.0:19133
[rakrs] DBG! [CLIENT] Waiting for pong packet...
[rakrs] DBG! [CLIENT] Recieved pong packet!
[rakrs] DBG! [CLIENT] Starting connection handshake
[rakrs] DBG! [CLIENT] Sending OpenConnectRequest to server...
[rakrs] DBG! [CLIENT] Received OpenConnectReply from server!
[rakrs] DBG! [CLIENT] Discovered MTU size: 1417
[rakrs] DBG! [CLIENT] Sending SessionInfoRequest to server...
[rakrs] DBG! [CLIENT] Received SessionInfoReply from server!
[rakrs] DBG! [CLIENT] Sent ConnectionRequest to server!
thread 'async-std/runtime' panicked at /home/honnisha/Projects/RakNet/src/client/handshake.rs:270:47:
called `Result::unwrap()` on an `Err` value: OldSeq
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Server (debug options was added):

[rakrs] DBG! listener: Bound to 0.0.0.0:19133
[rakrs] DBG! [127.0.0.1:44553] Client requested Mtu Size: 1417
[rakrs] DBG! Creating new session for 127.0.0.1:44553
[rakrs] DBG! Created Session for 127.0.0.1:44553
[rakrs] DBG! [127.0.0.1:44553] Updated mtu size to 1417
@honnisha honnisha added the Bug Something isn't working label Sep 23, 2023
@john-bv
Copy link
Member

john-bv commented Sep 23, 2023

Ah, I know exactly the problem, will fix, did you test the server from async-std as well?

@honnisha
Copy link
Author

In my project I used
rak-rs = { version = "0.3.1", default-features = false, features = [ "async_tokio", "debug", "debug_all" ], optional = true }

@john-bv john-bv added the Complete The code review for this issue has been completed; and is now being finalized. label Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Complete The code review for this issue has been completed; and is now being finalized.
Projects
None yet
Development

No branches or pull requests

2 participants