Merge pull request #3841 from murgatroid99/ruby_test_timeout

Make ruby RpcServer stop waiting for calls when it gets null calls
pull/3863/head
Jan Tattermusch 9 years ago
commit 5e2db5b518
  1. 6
      src/ruby/.rubocop.yml
  2. 2
      src/ruby/lib/grpc/generic/rpc_server.rb

@ -9,3 +9,9 @@ AllCops:
- 'bin/math_services.rb'
- 'pb/grpc/health/v1alpha/*'
- 'pb/test/**/*'
Metrics/CyclomaticComplexity:
Max: 8
Metrics/PerceivedComplexity:
Max: 8

@ -416,6 +416,8 @@ module GRPC
until stopped?
begin
an_rpc = @server.request_call(@cq, loop_tag, INFINITE_FUTURE)
break if (!an_rpc.nil?) && an_rpc.call.nil?
c = new_active_server_call(an_rpc)
unless c.nil?
mth = an_rpc.method.to_sym

Loading…
Cancel
Save