|
|
@ -188,11 +188,13 @@ class TestTarget < Grpc::Testing::TestService::Service |
|
|
|
begin |
|
|
|
begin |
|
|
|
GRPC.logger.info('interop-server: started receiving') |
|
|
|
GRPC.logger.info('interop-server: started receiving') |
|
|
|
reqs.each do |req| |
|
|
|
reqs.each do |req| |
|
|
|
resp_size = req.response_parameters[0].size |
|
|
|
req.response_parameters.each do |params| |
|
|
|
GRPC.logger.info("read a req, response size is #{resp_size}") |
|
|
|
resp_size = params.size |
|
|
|
resp = cls.new(payload: Payload.new(type: req.response_type, |
|
|
|
GRPC.logger.info("read a req, response size is #{resp_size}") |
|
|
|
body: nulls(resp_size))) |
|
|
|
resp = cls.new(payload: Payload.new(type: req.response_type, |
|
|
|
q.push(resp) |
|
|
|
body: nulls(resp_size))) |
|
|
|
|
|
|
|
q.push(resp) |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
GRPC.logger.info('interop-server: finished receiving') |
|
|
|
GRPC.logger.info('interop-server: finished receiving') |
|
|
|
q.push(self) |
|
|
|
q.push(self) |
|
|
|