Skip to content

net: support TCP handle transfer on Windows#64460

Open
mcollina wants to merge 1 commit into
nodejs:mainfrom
mcollina:tcp-transfer-windows
Open

net: support TCP handle transfer on Windows#64460
mcollina wants to merge 1 commit into
nodejs:mainfrom
mcollina:tcp-transfer-windows

Conversation

@mcollina

Copy link
Copy Markdown
Member

Adds Windows support for transferring TCP handles across worker threads.

Fixes: #64456

Signed-off-by: Matteo Collina <hello@matteocollina.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Jul 12, 2026
@codecov

codecov Bot commented Jul 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 60.00000% with 4 lines in your changes missing coverage. Please review.
βœ… Project coverage is 90.24%. Comparing base (dca0fd1) to head (060c604).
⚠️ Report is 24 commits behind head on main.

Files with missing lines Patch % Lines
src/tcp_wrap.cc 50.00% 1 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #64460      +/-   ##
==========================================
- Coverage   90.24%   90.24%   -0.01%     
==========================================
  Files         741      741              
  Lines      241603   241596       -7     
  Branches    45523    45530       +7     
==========================================
- Hits       218038   218022      -16     
+ Misses      15109    15100       -9     
- Partials     8456     8474      +18     
Files with missing lines Coverage Ξ”
lib/internal/errors.js 97.71% <ΓΈ> (-0.01%) ⬇️
lib/net.js 94.54% <ΓΈ> (+0.19%) ⬆️
src/tcp_wrap.h 57.14% <100.00%> (+3.29%) ⬆️
src/tcp_wrap.cc 68.85% <50.00%> (ΓΈ)

... and 31 files with indirect coverage changes

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mcollina mcollina added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 13, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 13, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@mcollina mcollina added the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 14, 2026
@mcollina

Copy link
Copy Markdown
Member Author

DO you know why the test-internt job is failing?

@nodejs-github-bot nodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Jul 14, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator
Commit Queue failed
- Loading data for nodejs/node/pull/64460
βœ”  Done loading data for nodejs/node/pull/64460
----------------------------------- PR info ------------------------------------
Title      net: support TCP handle transfer on Windows (#64460)
Author     Matteo Collina <matteo.collina@gmail.com> (@mcollina)
Branch     mcollina:tcp-transfer-windows -> nodejs:main
Labels     c++, lib / src, needs-ci
Commits    1
 - net: support TCP handle transfer on Windows
Committers 1
 - Matteo Collina <hello@matteocollina.com>
PR-URL: https://github.com/nodejs/node/pull/64460
Fixes: https://github.com/nodejs/node/issues/64456
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/64460
Fixes: https://github.com/nodejs/node/issues/64456
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
--------------------------------------------------------------------------------
   β„Ή  This PR was created on Sun, 12 Jul 2026 19:21:24 GMT
   βœ”  Approvals: 3
   βœ”  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/64460#pullrequestreview-4680793259
   βœ”  - Stefan Stojanovic (@StefanStojanovic): https://github.com/nodejs/node/pull/64460#pullrequestreview-4682937899
   βœ”  - Marco Ippolito (@marco-ippolito) (TSC): https://github.com/nodejs/node/pull/64460#pullrequestreview-4695725787
   ✘  1 GitHub CI job(s) failed:
   ✘    - test-internet: FAILURE (https://github.com/nodejs/node/actions/runs/29205638124/job/87130276315)
   β„Ή  Last Full PR CI on 2026-07-13T18:49:42Z: https://ci.nodejs.org/job/node-test-pull-request/74791/
- Querying data for job/node-test-pull-request/74791/
βœ”  Build data downloaded
   βœ”  Last Jenkins CI successful
--------------------------------------------------------------------------------
   βœ”  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/29363329109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. commit-queue-failed An error occurred while landing this pull request using GitHub Actions. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

net: add Windows support for TCP handle transfer across worker threads

5 participants