From 215ea27cda3468762ea576100b8cb01cbf1032c1 Mon Sep 17 00:00:00 2001 From: geek Date: Fri, 6 Apr 2018 21:57:41 +0900 Subject: [PATCH] project init --- servlet/rpc-servlet.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/servlet/rpc-servlet.go b/servlet/rpc-servlet.go index 0f9c519..c25132b 100644 --- a/servlet/rpc-servlet.go +++ b/servlet/rpc-servlet.go @@ -12,7 +12,7 @@ import ( type RPCServlet interface { cssw.Servlet -} +} type RPCServlets struct { cssw.Servlets @@ -42,7 +42,7 @@ func (s *RPCServlets) Handle( }() sc := crpj.NewServerCodec() - grpcCTX := context.Background() + for { select { @@ -55,6 +55,7 @@ func (s *RPCServlets) Handle( m := src.Method() p,_ := src.Params() + grpcCTX := context.Background() r, err := ogeg.Exec(grpcCTX,m, p)