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

Race Condition: examples/ServerClient/run.sh #25

Open
Haximilian opened this issue Oct 30, 2020 · 1 comment
Open

Race Condition: examples/ServerClient/run.sh #25

Haximilian opened this issue Oct 30, 2020 · 1 comment

Comments

@Haximilian
Copy link

Despite ./server/server being started first, it's possible for the ./client/client net.dial to execute before the ./server/server net.Listen. This causes the client connection establishment to fail.

@bestchai
Copy link
Member

Since this is a testing script, I think it's okay to fudge it and add a sleep in between the two commands. i.e., run the server, sleep for a couple of seconds, and then run the client.

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

2 participants