Comment 10 for bug 1576353

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 1576353] Re: install openssh-server by default, prompt for enabling it on server iso install

On Mon, May 02, 2016 at 05:44:31PM -0000, Colin Watson wrote:
> I'm not sure how that would make any difference at all. The problem is
> that it's hard for sshd to maintain the necessary state across multiple
> invocations when it's being invoked once per connection rather than
> having a master process that can trivially keep track of all the
> inter-connection state it needs.

When using the sd_listen_fds(3) protocol, systemd is *not* calling accept()
on the service's behalf, and is not launching per-connection instances of
the service. The socket activation is merely lazy initialization, where
once a connection comes in, the normal ssh service is launched and manages
that socket from there on out. So there would be a master process keeping
track, unless I've overlooked something?