Skip to content

Commit

Permalink
Request systemd to drain the socket to fix daemon restart
Browse files Browse the repository at this point in the history
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 grpc/grpc-go#4282.

Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>
  • Loading branch information
didrocks and jibel committed Mar 25, 2021
1 parent 43b9691 commit abcc850
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions systemd/adsysd.socket
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ PartOf=adsysd.service

[Socket]
ListenStream=/run/adsysd.sock
FlushPending=yes

[Install]
WantedBy=sockets.target

0 comments on commit abcc850

Please sign in to comment.