Skip to content
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

Feature request: Accessing underlying FD from net.socket and http server http.IncomingMessage #1640

Closed
th3r0b0t opened this issue Feb 16, 2025 · 2 comments

Comments

@th3r0b0t
Copy link

First off please accept my humblest appreciations;
The title says it all; I could get the FD through some tricks like the one here but I'm concerned it wouldn't be stable.
Providing this ability would greatly help with clustering and task offloading/load-balancing.

Thanks again.

@legendecas
Copy link
Member

IMO, they are private internal details of the JS API. It is recommended to create the fd with public C/C++ APIs instead.

@legendecas
Copy link
Member

Closing as I don't think exposing internals is is in the scope of node-addon-api.

@github-project-automation github-project-automation bot moved this from Need Triage to Done in Node-API Team Project Feb 21, 2025
@legendecas legendecas closed this as not planned Won't fix, can't repro, duplicate, stale Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants