feat(node-server): implement socket activation - #3351
Closed
septatrix wants to merge 2 commits into
Closed
Conversation
This implements the 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.
septatrix
force-pushed
the
feat/systemd-socket-activation
branch
from
May 6, 2025 23:14
9044fb5 to
6f11209
Compare
Member
|
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) |
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Linked issue
This expands upon #1129.
❓ Type of change
📚 Description
This implements the 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.
Testing can be done using the following commands:
📝 Checklist