[systemd-devel] socket activation systemd holding a reference to an accepted socket
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Thu Feb 18 12:23:07 UTC 2016
On Thu, Feb 18, 2016 at 09:59:32AM +0300, Andrei Borzenkov wrote:
> On Thu, Feb 18, 2016 at 4:44 AM, Ben Woodard <woodard at redhat.com> wrote:
> > Is it intentional that systemd holds a reference to a socket it has just accepted even though it just handed the open socket over to a socket.activated service that it has just started.
>
> yes.
>
> >
> > For example given the following unit files:
> >
> > /etc/systemd/system/test.socket:
> > [Unit]
> > Description=test service
> >
> > [Socket]
> > ListenStream=804
> > Accept=yes
> >
>
> systemd continues to listen for new requests on this socket. Each
> request will spawn new service instance.
OP's question is about the connection socket, not about the listening
socket.
Zbyszek
More information about the systemd-devel
mailing list