8000 Support socket activation for Node.js · Issue #74 · h3js/srvx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Support socket activation for Node.js #74
Open
@septatrix

Description

@septatrix

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0