Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Binding http server to file descriptor fails to read #14183

@terinjokes

Description

@terinjokes

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions