Merge pull request #15442 from apolcyn/error_message

Add more details to a resource exhausted ruby error
pull/15465/head
apolcyn 7 years ago committed by GitHub
commit e08972b1a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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