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

First message in client_server example never receives a response from server #275

Closed
joseluis opened this issue May 29, 2020 · 4 comments
Closed

Comments

@joseluis
Copy link
Contributor

joseluis commented May 29, 2020

Hi, I want to know if this is a bug or expected behavior.

The first message from the client to the server en the client_sever example never gets a response. Only the second message and the next ones.

E.g. starting the server and then the client:

➜ cargo run --example server_client
    Finished dev [unoptimized + debuginfo] target(s) in 1.16s
     Running `target/debug/examples/server_client`
Please type in `server` or `client`.
s
Starting server..
Received "msg1" from V4(127.0.0.1)
Received "msg2" from V4(127.0.0.1)
Client timed out: 127.0.0.1:12352
$ cargo run --example server_client 
    Finished dev [unoptimized + debuginfo] target(s) in 0.05s
     Running `target/debug/examples/server_client`
Please type in `server` or `client`.
c
Starting client..
Connected on 127.0.0.1:12352
Type a message and press Enter to send. Send `Bye!` to quit.
msg1
Silence..
msg2
Server sent: Copy that!
@TimonPost
Copy link
Owner

Hi, do you have any sample code?

@TheRadioGuy
Copy link

@TimonPost There's code in #273

@joseluis
Copy link
Contributor Author

joseluis commented May 31, 2020

@TimonPost Do you want a different code from the server_client example?.

@joseluis
Copy link
Contributor Author

joseluis commented Sep 8, 2020

This is fixed now, probably in #280

@joseluis joseluis closed this as completed Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants