From abcc8505030381e37c9ce7e337fe6f8dc4fb1044 Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Thu, 25 Mar 2021 11:06:54 +0100 Subject: [PATCH] Request systemd to drain the socket to fix daemon restart When stopping the daemon, the GOAWAY message is sent to connected clients, which is not necessarily consumed by them, leaving a new connection on the socket, which retriggers a restart from systemd. Upstream discussion is at https://github.com/grpc/grpc-go/issues/4282. Co-authored-by: Jean-Baptiste Lallement --- systemd/adsysd.socket | 1 + 1 file changed, 1 insertion(+) diff --git a/systemd/adsysd.socket b/systemd/adsysd.socket index 90d48d6e7..113f682cf 100644 --- a/systemd/adsysd.socket +++ b/systemd/adsysd.socket @@ -4,6 +4,7 @@ PartOf=adsysd.service [Socket] ListenStream=/run/adsysd.sock +FlushPending=yes [Install] WantedBy=sockets.target