xiaodoudou12
xiaodoudou12
[https://github.com/grpc/grpc-go/pull/4917](url) I found this change is not merged to master
感谢大佬的解答,上面两个问题我扩展搞定了,现在我在尝试优雅的关闭服务器,遇到一些问题想请教。 以下代码是我用kitex-examples/streaming/server/main.go的代码修改了以下作为测试 ``` var( stream_ctx context.Context ) func main() { ctx, cancel := context.WithCancel(context.Background()) stream_ctx = ctx go func(){ svr := echo.NewServer(new(EchoImpl)) server.RegisterShutdownHook(func(){ klog.Info("server will be stop 111111111") cancel() //...