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

Fix test net tcp retry #1979

Merged
merged 3 commits into from
Nov 8, 2024
Merged

Fix test net tcp retry #1979

merged 3 commits into from
Nov 8, 2024

Conversation

plajjan
Copy link
Contributor

@plajjan plajjan commented Nov 8, 2024

No description provided.

Sometimes we want to know if we succeeded in listening, so changing the
on_error() callback to on_listen() and the error message is now an
optional, so if it is None, it means all went well!
We get some races since we start the client and server at the same time,
but the server listener might fail if the port is already taken. We now
avoid that race by checking if the listener starts up correctly and only
then initiating the client. Also ignoring any possible received data
from older clients (which really shouldn't be able to happen!).

Overall, tests should be stable now.
@plajjan plajjan merged commit 14faefd into main Nov 8, 2024
25 of 26 checks passed
@plajjan plajjan deleted the fix-test-net-tcp-retry branch November 8, 2024 13:28
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

Successfully merging this pull request may close these issues.

1 participant