Add more details to a resource exhausted ruby error

pull/15442/head
Alexander Polcyn 7 years ago
parent 39604e410d
commit 747fbca1e8
  1. 3
      src/ruby/lib/grpc/generic/rpc_server.rb

@ -364,7 +364,8 @@ module GRPC
# sent yet
c = ActiveCall.new(an_rpc.call, noop, noop, an_rpc.deadline,
metadata_received: true, started: false)
c.send_status(GRPC::Core::StatusCodes::RESOURCE_EXHAUSTED, '')
c.send_status(GRPC::Core::StatusCodes::RESOURCE_EXHAUSTED,
'No free threads in thread pool')
nil
end

Loading…
Cancel
Save