Skip to content

unix: support SO_REUSEPORT with load balancing for UDP - #4419

Merged
santigimeno merged 4 commits into
libuv:v1.xfrom
panjf2000:udp-reuseport
Jun 20, 2024
Merged

santigimeno merged 4 commits into
libuv:v1.xfrom
panjf2000:udp-reuseport

Conversation

@panjf2000

Copy link
Copy Markdown
Contributor

UDP version of #4407

@panjf2000

Copy link
Copy Markdown
Contributor Author

/cc @saghul @santigimeno

@panjf2000
panjf2000 force-pushed the udp-reuseport branch 2 times, most recently from 5bec9bc to 6ddb837 Compare May 23, 2024 11:19
@panjf2000

panjf2000 commented May 23, 2024 •

Copy link
Copy Markdown
Contributor Author

This CI failure should have been fixed by #4417

@panjf2000

Copy link
Copy Markdown
Contributor Author

Kindly ping @saghul @santigimeno

@saghul

saghul commented May 30, 2024

Copy link
Copy Markdown
Member

Merged the test update, can you pl rebase?

@panjf2000

Copy link
Copy Markdown
Contributor Author

Merged the test update, can you pl rebase?

Done!

@panjf2000

panjf2000 commented May 30, 2024 •

Copy link
Copy Markdown
Contributor Author

A test failure arose:

not ok 51 - fs_event_error_reporting
# exit code 6
# Output from process `fs_event_error_reporting`:
# Assertion failed in /Users/runner/work/libuv/libuv/test/test-fs-event.c on line 1115: `uv_loop_init(loop) == 0` (-24 == 0)

, with which this PR should have nothing to do (hopefully (⊙ˍ⊙))

@santigimeno santigimeno left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Left a couple of comments.

Comment thread test/test-udp-reuseport.c Resolved
Comment thread test/test-udp-reuseport.c Resolved
Comment thread test/test-udp-reuseport.c Resolved
@panjf2000

Copy link
Copy Markdown
Contributor Author

Some comments on this? @saghul

Comment thread docs/src/udp.rst Resolved
Comment thread include/uv.h Resolved
Comment thread src/unix/core.c Resolved
Comment thread src/unix/udp.c Resolved
@panjf2000
panjf2000 force-pushed the udp-reuseport branch 2 times, most recently from 4220ed3 to e680b8a Compare June 3, 2024 10:34

@saghul saghul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👏

@panjf2000

Copy link
Copy Markdown
Contributor Author

It seems like an irrelevant CI failure:

not ok 321 - tcp_oob
# timeout
# Output from process `tcp_oob`: (no output)

Could you rerun the failed runner manually? @saghul

@saghul

saghul commented Jun 3, 2024

Copy link
Copy Markdown
Member

It seems like an irrelevant CI failure:

not ok 321 - tcp_oob
# timeout
# Output from process `tcp_oob`: (no output)

Could you rerun the failed runner manually? @saghul

Done.

@panjf2000

Copy link
Copy Markdown
Contributor Author

Great! All checks have passed!
Can we get this PR merged now? @saghul

@saghul

saghul commented Jun 3, 2024

Copy link
Copy Markdown
Member

Can we get this PR merged now?

We need some more eyes.

---------

Signed-off-by: Andy Pan <i@andypan.me>
@panjf2000

Copy link
Copy Markdown
Contributor Author

Maybe @santigimeno wants to take another look at this?

@panjf2000

Copy link
Copy Markdown
Contributor Author

Ping @libuv/collaborators

@panjf2000

Copy link
Copy Markdown
Contributor Author

@santigimeno Could you take a quick look at the latest code changes? Thanks!

@santigimeno santigimeno left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM with a couple of non-mandatory nits. Sorry it took this long getting to review this: was very busy. Thanks

Comment thread test/test-udp-reuseport.c Resolved
Comment thread src/unix/core.c Resolved
---------

Signed-off-by: Andy Pan <i@andypan.me>
---------

Signed-off-by: Andy Pan <i@andypan.me>
---------

Signed-off-by: Andy Pan <i@andypan.me>
@panjf2000
panjf2000 requested a review from santigimeno June 20, 2024 11:45
@santigimeno
santigimeno merged commit ba24986 into libuv:v1.x Jun 20, 2024
@panjf2000
panjf2000 deleted the udp-reuseport branch June 20, 2024 22:17
nodejs-github-bot pushed a commit to nodejs/node that referenced this pull request Oct 21, 2024
PR-URL: #55403
Refs: libuv/libuv#4419
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
aduh95 pushed a commit to nodejs/node that referenced this pull request Oct 23, 2024
PR-URL: #55403
Refs: libuv/libuv#4419
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
ruyadorno pushed a commit to nodejs/node that referenced this pull request Nov 27, 2024
PR-URL: #55403
Refs: libuv/libuv#4419
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
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.

3 participants