Merge pull request #16477 from ganmacs/rescue-grpc-call-error

Rescue `GRPC::Core::CallError`  so that worker threads are not killed
pull/16647/head
apolcyn 6 years ago committed by GitHub
commit 8ad90b42a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/ruby/lib/grpc/generic/rpc_server.rb

@ -136,7 +136,7 @@ module GRPC
begin
blk, args = worker_queue.pop
blk.call(*args)
rescue StandardError => e
rescue StandardError, GRPC::Core::CallError => e
GRPC.logger.warn('Error in worker thread')
GRPC.logger.warn(e)
end

Loading…
Cancel
Save