You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
I'm attempting to use node.js as a systemd service using "socket activation", where systemd binds to the TCP port and passes a file descriptor to the running service, starting with file descriptor 3.
@misterdjules I can reproduce in 0.10, any recourse recommendations to get this working? Suppose i could ship a native component that calls uv__nonblock(fd, 1) myself, but would be awesome if there was something simpler.
EDIT: I created a module to do this, and my code now works in 0.10. Will edit again when I get it published after I eat some food. :)
I'm attempting to use node.js as a systemd service using "socket activation", where systemd binds to the TCP port and passes a file descriptor to the running service, starting with file descriptor 3.
According to 0.10 and 0.12 documentation, passing this file descriptor to http.Server.listen should work (https://nodejs.org/api/http.html#http_server_listen_handle_callback). The 'listening' event successfully fires, but no connections ever make it to 'request'.
I've setup a test repository to help reproduce this issue: https://github.com/terinjokes/nodejs-systemd-issue
This test repository does work in io.js, so i suspect there's a fix that could be backported, but I was unable to find one in particular.
The text was updated successfully, but these errors were encountered: