Start sending GOAWAY (keep-alive: close) to drain connections on HUP signal [Java]
23 views
Skip to first unread message
zohaib...@doordash.com
unread,
Dec 17, 2019, 1:07:24 AM12/17/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to grpc.io
Hey folks,
I have a gRPC server in Java that will receive a HUP as a signal to stop accepting any new connections and keep processing existing calls. I am looking for a recommendation on how I can stop receiving new connections and signal existing clients to close connections to GOAWAY (behavior similar to keep-alive: close). I've tried looking for possible solutions but couldn't think of anything other than having ForwardCall interceptor that send Status.UNAVAILABLE but that will also fail calls in progress as well. What would be the right way to do it?