Opened 3 years ago

Last modified 3 years ago

#6585 enhancement new

Add a server endpoint for listening on a file descriptor inherited from (x)inetd

Reported by: glyph Owned by:
Priority: low Milestone:
Component: core Keywords:
Cc: Branch:
Author:

Description (last modified by glyph)

FreeBSD still uses inetd; but it's still possible to get on-demand socket activation (albeit only for a single socket at a time).

http://www.manpages.info/freebsd/inetd.conf.5.html

Also, according to http://linux.die.net/man/5/xinetd.conf, it is possible to get a listening socket (rather than a connected socket) from xinetd - see the "wait" configuration key. I believe it will be passed as stdin, so only one may be inherited at a time.

http://xinetd.org

See also:

Change History (2)

comment:1 Changed 3 years ago by glyph

  • Description modified (diff)
  • Summary changed from Add a server endpoint for listening on a file descriptor inherited from xinetd to Add a server endpoint for listening on a file descriptor inherited from (x)inetd

Updating; looks like FreeBSD uses inetd, but the 'wait' key is not new to xinetd, and they both seem to work roughly the same way. FreeBSD's documentation is a bit clearer on how this works. (Try to ignore all the nonsense about "threads" in both of these man pages; the only difference is who calls accept.)

comment:2 Changed 3 years ago by glyph

  • Description modified (diff)
Note: See TracTickets for help on using tickets.