dgram: add UV_UDP_REUSEPORT for udp
UV_UDP_REUSEPORT allows users to bind a port to multiple sockets.
Refs: https://github.com/libuv/libuv/pull/4419
- [x]
make -j4 test(UNIX), orvcbuild test(Windows) passes - [x] tests and/or benchmarks are included
- [x] documentation is changed or added
- [x] commit message follows commit guidelines
Review requested:
- [ ] @nodejs/net
CI: https://ci.nodejs.org/job/node-test-pull-request/63139/
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 88.40%. Comparing base (
7a7c2b3) to head (c563569). Report is 68 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #55403 +/- ##
==========================================
- Coverage 88.41% 88.40% -0.02%
==========================================
Files 652 653 +1
Lines 186878 187491 +613
Branches 36061 36094 +33
==========================================
+ Hits 165236 165751 +515
- Misses 14895 14970 +75
- Partials 6747 6770 +23
| Files with missing lines | Coverage Δ | |
|---|---|---|
| lib/dgram.js | 97.33% <100.00%> (+0.01%) |
:arrow_up: |
| src/udp_wrap.cc | 78.71% <100.00%> (+0.04%) |
:arrow_up: |
CI: https://ci.nodejs.org/job/node-test-pull-request/63141/
CI: https://ci.nodejs.org/job/node-test-pull-request/63145/
CI: https://ci.nodejs.org/job/node-test-pull-request/63153/
Title should be dgram: add UV_TCP_REUSEPORT, right?
CI: https://ci.nodejs.org/job/node-test-pull-request/63171/
CI: https://ci.nodejs.org/job/node-test-pull-request/63174/
CI: https://ci.nodejs.org/job/node-test-pull-request/63187/
CI: https://ci.nodejs.org/job/node-test-pull-request/63205/
CI: https://ci.nodejs.org/job/node-test-pull-request/63207/ 💚
Landed in 6a02c2701e34eebcbbbeced061507af7d6481820