<div dir="ltr">Hello,<div>I am adding socket activation to a daemon. It basically works well, but for multiple simultaneous connections, the systemd seems to serialize the incoming requests, spawning the daemon for each request only after the previous request is served (i.e. the daemon terminates). </div><div><br></div><div>Is it really the case? Or I am doing something wrong?</div><div><br></div><div>I use "classic" approach as:</div><div><br></div><div>n = sd_listen_fds(0);<br> if (n >= 1) {<br>  for (int fd = SD_LISTEN_FDS_START; fd < SD_LISTEN_FDS_START + n; fd++)<br></div><div> ...</div><div><br></div><div><br></div><div>So, the question is: how to convince systemd to spawn instances in parallel every time a new connection is established on the socket, instead of serializing them? Although the server is contacted rather rarely (and thus I deal with socket activation), it takes a longer time to finish with the client. And when would multiple clients contact the server simultaneously, they will wait for a long time ...</div><div><br></div><div>Thank you for your advice.</div><div><br></div><div>Best regards,</div><div>Dan T.</div><div><br></div><div><br></div><div><br></div></div>