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

test: fix the flaky test-tcp-reuseport #4417

Merged
merged 2 commits into from
May 30, 2024
Merged

Conversation

panjf2000
Copy link
Contributor

Start connecting to the peers after all threads
to poll for accepting connections.

For #4407

Start connecting to the peers after all threads
to poll for accepting connections.

For libuv#4407

---------

Signed-off-by: Andy Pan <[email protected]>
@panjf2000
Copy link
Contributor Author

/cc @saghul @santigimeno

@panjf2000
Copy link
Contributor Author

panjf2000 commented May 22, 2024

It seemed that connecting to the listeners that have not yet started polling for accepting may not get the incoming connections to be distributed across all listening threads. Check out https://github.com/libuv/libuv/actions/runs/9190479225/job/25274784544

Copy link
Member

@saghul saghul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a suggestion

test/test-tcp-reuseport.c Show resolved Hide resolved
---------

Signed-off-by: Andy Pan <[email protected]>
@panjf2000 panjf2000 requested a review from saghul May 23, 2024 06:40
@panjf2000
Copy link
Contributor Author

Hi @santigimeno, got a minute for this?

@saghul saghul merged commit 1ee1063 into libuv:v1.x May 30, 2024
37 checks passed
@panjf2000 panjf2000 deleted the tcp-reuseport-test branch May 30, 2024 08:04
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.

2 participants