-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
net: add UV_TCP_REUSEPORT for tcp #55408
net: add UV_TCP_REUSEPORT for tcp #55408
Conversation
Review requested:
|
e6cdae7
to
3cd2331
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #55408 +/- ##
==========================================
- Coverage 88.41% 88.41% -0.01%
==========================================
Files 652 653 +1
Lines 186878 187527 +649
Branches 36061 36105 +44
==========================================
+ Hits 165236 165804 +568
- Misses 14895 14956 +61
- Partials 6747 6767 +20
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This comment was marked as outdated.
This comment was marked as outdated.
3cd2331
to
42c2297
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is amazing!
LGTM!
This comment was marked as outdated.
This comment was marked as outdated.
42c2297
to
9615473
Compare
9615473
to
e3efe95
Compare
Title should be |
This comment was marked as outdated.
This comment was marked as outdated.
e3efe95
to
470f1e2
Compare
470f1e2
to
8ed5ef2
Compare
f7aac2d
to
0b06319
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Landed in 7bc3e16 |
PR-URL: #55408 Refs: libuv/libuv#4407 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Notable changes: assert: * (SEMVER-MINOR) make `assertion_error` use Myers diff algorithm (Giovanni Bucci) #54862 buffer: * (SEMVER-MINOR) make `Buffer` work with resizable `ArrayBuffer` (James M Snell) #55377 esm: * mark import attributes and JSON module as stable (Nicolò Ribaudo) #55333 lib: * (SEMVER-MINOR) add `UV_UDP_REUSEPORT` for udp (theanarkh) #55403 net: * (SEMVER-MINOR) add `UV_TCP_REUSEPORT` for tcp (theanarkh) #55408 test_runner: * mark `MockTimers` as stable (Erick Wendel) #55398 PR-URL: TODO
Notable changes: assert: * (SEMVER-MINOR) make `assertion_error` use Myers diff algorithm (Giovanni Bucci) #54862 buffer: * (SEMVER-MINOR) make `Buffer` work with resizable `ArrayBuffer` (James M Snell) #55377 esm: * mark import attributes and JSON module as stable (Nicolò Ribaudo) #55333 lib: * (SEMVER-MINOR) add `UV_UDP_REUSEPORT` for udp (theanarkh) #55403 net: * (SEMVER-MINOR) add `UV_TCP_REUSEPORT` for tcp (theanarkh) #55408 test_runner: * mark `MockTimers` as stable (Erick Wendel) #55398 PR-URL: #55513
Notable changes: assert: * (SEMVER-MINOR) make `assertion_error` use Myers diff algorithm (Giovanni Bucci) #54862 buffer: * (SEMVER-MINOR) make `Buffer` work with resizable `ArrayBuffer` (James M Snell) #55377 esm: * mark import attributes and JSON module as stable (Nicolò Ribaudo) #55333 lib: * (SEMVER-MINOR) add `UV_UDP_REUSEPORT` for udp (theanarkh) #55403 net: * (SEMVER-MINOR) add `UV_TCP_REUSEPORT` for tcp (theanarkh) #55408 test_runner: * mark `MockTimers` as stable (Erick Wendel) #55398 PR-URL: #55513
PR-URL: nodejs#55408 Refs: libuv/libuv#4407 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Notable changes: assert: * (SEMVER-MINOR) make `assertion_error` use Myers diff algorithm (Giovanni Bucci) nodejs#54862 buffer: * (SEMVER-MINOR) make `Buffer` work with resizable `ArrayBuffer` (James M Snell) nodejs#55377 esm: * mark import attributes and JSON module as stable (Nicolò Ribaudo) nodejs#55333 lib: * (SEMVER-MINOR) add `UV_UDP_REUSEPORT` for udp (theanarkh) nodejs#55403 net: * (SEMVER-MINOR) add `UV_TCP_REUSEPORT` for tcp (theanarkh) nodejs#55408 test_runner: * mark `MockTimers` as stable (Erick Wendel) nodejs#55398 PR-URL: nodejs#55513
PR-URL: nodejs#55408 Refs: libuv/libuv#4407 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Notable changes: assert: * (SEMVER-MINOR) make `assertion_error` use Myers diff algorithm (Giovanni Bucci) nodejs#54862 buffer: * (SEMVER-MINOR) make `Buffer` work with resizable `ArrayBuffer` (James M Snell) nodejs#55377 esm: * mark import attributes and JSON module as stable (Nicolò Ribaudo) nodejs#55333 lib: * (SEMVER-MINOR) add `UV_UDP_REUSEPORT` for udp (theanarkh) nodejs#55403 net: * (SEMVER-MINOR) add `UV_TCP_REUSEPORT` for tcp (theanarkh) nodejs#55408 test_runner: * mark `MockTimers` as stable (Erick Wendel) nodejs#55398 PR-URL: nodejs#55513
PR-URL: #55408 Refs: libuv/libuv#4407 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Notable changes: assert: * (SEMVER-MINOR) make assertion_error use Myers diff algorithm (Giovanni Bucci) #54862 buffer: * (SEMVER-MINOR) make Buffer work with resizable ArrayBuffer (James M Snell) #55377 crypto: * update root certificates to NSS 3.104 (Richard Lau) #55681 doc: * enforce strict policy to semver-major releases (Rafael Gonzaga) #55732 * add jazelly to collaborators (Jason Zhang) #55531 esm: * mark import attributes and JSON module as stable (Nicolò Ribaudo) #55333 http: * (SEMVER-MINOR) add diagnostic channel `http.client.request.created` (Marco Ippolito) #55586 lib: * (SEMVER-MINOR) add UV_UDP_REUSEPORT for udp (theanarkh) #55403 module: * (SEMVER-MINOR) unflag --experimental-require-module (Joyee Cheung) #55085 net: * (SEMVER-MINOR) add UV_TCP_REUSEPORT for tcp (theanarkh) #55408 sqlite: * (SEMVER-MINOR) add support for SQLite Session Extension (Bart Louwers) #54181 tools: * fix root certificate updater (Richard Lau) #55681 util: * (SEMVER-MINOR) fix util.getCallSites plurality (Chengzhong Wu) #55626 PR-URL: TODO
Notable changes: assert: * (SEMVER-MINOR) make assertion_error use Myers diff algorithm (Giovanni Bucci) #54862 buffer: * (SEMVER-MINOR) make Buffer work with resizable ArrayBuffer (James M Snell) #55377 crypto: * update root certificates to NSS 3.104 (Richard Lau) #55681 doc: * enforce strict policy to semver-major releases (Rafael Gonzaga) #55732 * add jazelly to collaborators (Jason Zhang) #55531 esm: * mark import attributes and JSON module as stable (Nicolò Ribaudo) #55333 http: * (SEMVER-MINOR) add diagnostic channel `http.client.request.created` (Marco Ippolito) #55586 lib: * (SEMVER-MINOR) add UV_UDP_REUSEPORT for udp (theanarkh) #55403 module: * (SEMVER-MINOR) unflag --experimental-require-module (Joyee Cheung) #55085 net: * (SEMVER-MINOR) add UV_TCP_REUSEPORT for tcp (theanarkh) #55408 sqlite: * (SEMVER-MINOR) add support for SQLite Session Extension (Bart Louwers) #54181 tools: * fix root certificate updater (Richard Lau) #55681 util: * (SEMVER-MINOR) fix util.getCallSites plurality (Chengzhong Wu) #55626 PR-URL: #56040
Notable changes: assert: * (SEMVER-MINOR) make assertion_error use Myers diff algorithm (Giovanni Bucci) #54862 buffer: * (SEMVER-MINOR) make Buffer work with resizable ArrayBuffer (James M Snell) #55377 crypto: * update root certificates to NSS 3.104 (Richard Lau) #55681 doc: * enforce strict policy to semver-major releases (Rafael Gonzaga) #55732 * add jazelly to collaborators (Jason Zhang) #55531 esm: * mark import attributes and JSON module as stable (Nicolò Ribaudo) #55333 http: * (SEMVER-MINOR) add diagnostic channel `http.client.request.created` (Marco Ippolito) #55586 lib: * (SEMVER-MINOR) add UV_UDP_REUSEPORT for udp (theanarkh) #55403 module: * (SEMVER-MINOR) unflag --experimental-require-module (Joyee Cheung) #55085 net: * (SEMVER-MINOR) add UV_TCP_REUSEPORT for tcp (theanarkh) #55408 sqlite: * (SEMVER-MINOR) add support for SQLite Session Extension (Bart Louwers) #54181 tools: * fix root certificate updater (Richard Lau) #55681 PR-URL: #56040
Notable changes: assert: * (SEMVER-MINOR) make assertion_error use Myers diff algorithm (Giovanni Bucci) #54862 buffer: * (SEMVER-MINOR) make Buffer work with resizable ArrayBuffer (James M Snell) #55377 crypto: * update root certificates to NSS 3.104 (Richard Lau) #55681 doc: * enforce strict policy to semver-major releases (Rafael Gonzaga) #55732 * add jazelly to collaborators (Jason Zhang) #55531 esm: * mark import attributes and JSON module as stable (Nicolò Ribaudo) #55333 http: * (SEMVER-MINOR) add diagnostic channel `http.client.request.created` (Marco Ippolito) #55586 lib: * (SEMVER-MINOR) add UV_UDP_REUSEPORT for udp (theanarkh) #55403 module: * (SEMVER-MINOR) unflag --experimental-require-module (Joyee Cheung) #55085 net: * (SEMVER-MINOR) add UV_TCP_REUSEPORT for tcp (theanarkh) #55408 sqlite: * (SEMVER-MINOR) add support for SQLite Session Extension (Bart Louwers) #54181 tools: * fix root certificate updater (Richard Lau) #55681 PR-URL: #56040
SO_REUSEPORT
allows users bind a port to multiple sockets, and incoming connections are distributed by OS across the listener sockets. It will improve the performance of server.Refs: libuv/libuv#4407
make -j4 test
(UNIX), orvcbuild test
(Windows) passes