The functionality to use an http,Handler to handle requests can be set up 
only internally for testing. The users don't have access to it; The 
required server option to enable it hasn't been provided. 


On Monday, January 9, 2017 at 7:55:23 PM UTC-8, Francis Chuang wrote:
>
> 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/6939d7de-9abf-43b2-87bb-c8dc19443863%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to