Skip to content

net: make TCP Server and Socket transferable across worker threads#64225

Draft
mcollina wants to merge 2 commits into
nodejs:mainfrom
mcollina:net-transfer-handles-worker-threads
Draft

net: make TCP Server and Socket transferable across worker threads#64225
mcollina wants to merge 2 commits into
nodejs:mainfrom
mcollina:net-transfer-handles-worker-threads

Conversation

@mcollina

@mcollina mcollina commented Jul 1, 2026

Copy link
Copy Markdown
Member

Move a listening net.Server or an accepted net.Socket to another thread via a worker_threads postMessage() transferList. Unix only; Windows throws.

Allow a listening net.Server or an accepted net.Socket to be moved to
another thread by listing it in the transferList of a worker_threads
postMessage() call. Unix only; Windows throws.

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 1, 2026
Signed-off-by: Matteo Collina <hello@matteocollina.com>
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++. 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.

2 participants