aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Ken Payson <kpayson@google.com>2017-11-07 11:27:02 -0800
committerGravatar Ken Payson <kpayson@google.com>2017-11-07 11:27:02 -0800
commite1533572d517df2e660cf57556d296b59ab89cfc (patch)
tree30b6e30869717333c23d966e038bd9b3a738b625 /include
parentc55a4b1ab577c3ef32794c48ca4ae9fe6f810646 (diff)
Add back mpscq request matcher
Diffstat (limited to 'include')
-rw-r--r--include/grpc++/server_builder.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/grpc++/server_builder.h b/include/grpc++/server_builder.h
index 0888bef0d9..bf842baf6f 100644
--- a/include/grpc++/server_builder.h
+++ b/include/grpc++/server_builder.h
@@ -202,7 +202,10 @@ class ServerBuilder {
struct SyncServerSettings {
SyncServerSettings()
- : num_cqs(1), min_pollers(1), max_pollers(2), cq_timeout_msec(10000) {}
+ : num_cqs(GPR_MAX(1, gpr_cpu_num_cores())),
+ min_pollers(1),
+ max_pollers(2),
+ cq_timeout_msec(10000) {}
/// Number of server completion queues to create to listen to incoming RPCs.
int num_cqs;