aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-09-15 09:01:05 -0700
committerGravatar Mark D. Roth <roth@google.com>2016-09-15 09:01:05 -0700
commit0e256107e812807967aa37ee1dc0ca5e954e9a2c (patch)
treefd7246708e2966f164bf63bb5a163c5088b611ae /src/cpp
parent6751ac6ffe77c32fe2e4f4873f25ae4e5019bb18 (diff)
Code review changes.
Diffstat (limited to 'src/cpp')
-rw-r--r--src/cpp/server/server_builder.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpp/server/server_builder.cc b/src/cpp/server/server_builder.cc
index 960ebd640d..2980b16c56 100644
--- a/src/cpp/server/server_builder.cc
+++ b/src/cpp/server/server_builder.cc
@@ -162,10 +162,10 @@ std::unique_ptr<Server> ServerBuilder::BuildAndStart() {
}
(*plugin)->UpdateChannelArguments(&args);
}
- if (max_receive_message_size_ > 0) {
+ if (max_receive_message_size_ >= 0) {
args.SetInt(GRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH, max_receive_message_size_);
}
- if (max_send_message_size_ > 0) {
+ if (max_send_message_size_ >= 0) {
args.SetInt(GRPC_ARG_MAX_SEND_MESSAGE_LENGTH, max_send_message_size_);
}
args.SetInt(GRPC_COMPRESSION_CHANNEL_ENABLED_ALGORITHMS_BITSET,