diff --git a/thrift/server.go b/thrift/server.go index 2fbdb74a..37e453bc 100644 --- a/thrift/server.go +++ b/thrift/server.go @@ -202,6 +202,9 @@ func (s *Server) handle(origCtx context.Context, handler handler, method string, } writer, err = call.Response().Arg3Writer() + if err != nil { + return err + } wp = getProtocolWriter(writer) defer thriftProtocolPool.Put(wp)