Files
bun.sh/test/regression
Claude Bot bc67e976e4 fix: Add systemd socket activation support (fixes #22559)
- 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>
2025-09-11 21:47:54 +00:00
..