[systemd-devel] [PATCH] core/socket: we only want one event on standard sockets

David Timothy Strauss david at davidstrauss.net
Tue Nov 26 13:48:14 PST 2013


On Wed, Nov 27, 2013 at 6:23 AM, Shawn Landden <shawn at churchofgit.com> wrote:
> I was worried that the fact that we never accept() the socket when using
> distribute (now I am convinced we shouldn't use it otherwise)

I'm not sure what you mean here. Distribute-style functionality is
absolutely useful with Accept=true (to cap the number of simultaneous
connections) as well as Accept=false (to allow running of a process
pool of self-accepting, long-running workers).

> would cause it to trigger multiple times for only one incoming connection,
> if the spawned thread never entered accept() (or we raced it),
> but reading this thread makes me think I don't fully understand the
> semantics of EPOLLET.

There are some decent examples on the man page: http://linux.die.net/man/7/epoll


More information about the systemd-devel mailing list