aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/qps/worker.rb
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2016-09-29 15:20:55 -0700
committerGravatar GitHub <noreply@github.com>2016-09-29 15:20:55 -0700
commit2587f20d08238abbbba35e7abcad41efa15cd020 (patch)
tree91da19911e83e70b4515e21d6f5c654fa5096c1a /src/ruby/qps/worker.rb
parentd24b822d73c8608a4838c8887d7ecddf39c324a0 (diff)
parentbeeeddd571b667278075799f566a79735eaa8137 (diff)
Merge pull request #8238 from nicolasnoble/master-upmerge-from-deep-under
Upmerge from 1.0.x
Diffstat (limited to 'src/ruby/qps/worker.rb')
-rwxr-xr-xsrc/ruby/qps/worker.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ruby/qps/worker.rb b/src/ruby/qps/worker.rb
index 12b8087ca0..61a0b723a3 100755
--- a/src/ruby/qps/worker.rb
+++ b/src/ruby/qps/worker.rb
@@ -64,8 +64,8 @@ class WorkerServiceImpl < Grpc::Testing::WorkerService::Service
q.push(gtss.new(stats: bms.mark(req.mark.reset), cores: cpu_cores))
end
end
- q.push(self)
bms.stop
+ q.push(self)
}
q.each_item
end
@@ -83,8 +83,8 @@ class WorkerServiceImpl < Grpc::Testing::WorkerService::Service
client.mark(req.mark.reset)))
end
end
- q.push(self)
client.shutdown
+ q.push(self)
}
q.each_item
end
@@ -118,6 +118,10 @@ def main
options['server_port'] = v
end
end.parse!
+
+ # Configure any errors with client or server child threads to surface
+ Thread.abort_on_exception = true
+
s = GRPC::RpcServer.new
s.add_http2_port("0.0.0.0:" + options['driver_port'].to_s,
:this_port_is_insecure)