Description
Describe the feature
Please implement LISTEN_FDs socket activation protocol to allow starting the server by passing a preconfigured socket file descriptor. This is useful to allow an unprivileged process to bind to privileged ports or addresses outside the namespace and is often used with the systemd service manager on Linux, but also natively supported by the native launchd on MacOS.
See nitrojs/nitro#3351 for an implementation against Nitro
Thanks for PR ❤️ Since Nitro v3 will be based on srvx can you please raise an issue there to first discuss the API design? 🙏🏼 (we need to consider supporting Node, Deno and Bun and perhaps using an approach to use a srvx plugin to be opt-in)
(closing PR mainly for triage)
Originally posted by @pi0 in nitrojs/nitro#3351 (comment)
Currently only Node.js supports operating directly on FDs. For Deno see denoland/deno#6529. For Bun this is desired oven-sh/bun#2852 (comment) but the original PR got stale and closed.
Additional information
- Would you be willing to help implement this feature?