mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 12:51:54 +00:00
- Add us_socket_context_listen_from_fd() to uws for listening on existing file descriptors - Remove the explicit rejection of fd listening in Listener.zig - Enable systemd socket activation by allowing servers to listen on pre-existing sockets passed via file descriptors - This allows Bun to work with systemd-socket-activate and similar tools The implementation adds a new function to uws that creates a listen socket from an existing file descriptor, which is exactly what systemd socket activation needs. When LISTEN_FDS environment variable is set, systemd passes listening sockets starting from fd 3, and applications can now listen on these pre-existing sockets. 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>