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
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?

Thanks!
Reply all
Reply to author
Forward
0 new messages