grpc-go has a ServeHTTP() 
<https://godoc.org/google.golang.org/grpc#Server.ServeHTTP> method which 
allows the grpc server to be a handler for a net/http server. In go 1.8, 
the net/http server will have a Shutdown() 
<https://tip.golang.org/pkg/net/http/#Server.Shutdown>method to gracefully 
shutdown. If I use the ServeHTTP() method as a handler, does calling 
net/http server's Shutdown() method cleanly shuts down everything and 
replicate grpc-go server's GracefulShutdown() method?

If not, how do I achieve graceful shutdown correctly when using the 
ServeHTTP() method?

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/02d569af-65bf-4caf-b487-7ca4dee85a1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to