diff options
author | Mark D. Roth <roth@google.com> | 2016-09-06 08:16:13 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2016-09-06 08:16:13 -0700 |
commit | c99fd89d32d8b74791ea0aed1b0e72eed85db85d (patch) | |
tree | 72849bbba228d2f4ab9bd59eb950aa0cc76a5fea /test/cpp/interop | |
parent | 6980362c4edadc833c02fbcb104bf4d4a2a1e081 (diff) |
Increase max send message size on server used in objc tests.
Diffstat (limited to 'test/cpp/interop')
-rw-r--r-- | test/cpp/interop/interop_server.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/cpp/interop/interop_server.cc b/test/cpp/interop/interop_server.cc index e5878bb248..c05eb5d146 100644 --- a/test/cpp/interop/interop_server.cc +++ b/test/cpp/interop/interop_server.cc @@ -56,6 +56,7 @@ DEFINE_bool(use_tls, false, "Whether to use tls."); DEFINE_int32(port, 0, "Server port."); +DEFINE_int32(max_send_message_size, -1, "The maximum send message size."); using grpc::Server; using grpc::ServerBuilder; @@ -321,6 +322,9 @@ void grpc::testing::interop::RunServer( ServerBuilder builder; builder.RegisterService(&service); builder.AddListeningPort(server_address.str(), creds); + if (FLAGS_max_send_message_size >= 0) { + builder.SetMaxSendMessageSize(FLAGS_max_send_message_size); + } std::unique_ptr<Server> server(builder.BuildAndStart()); gpr_log(GPR_INFO, "Server listening on %s", server_address.str().c_str()); while (!g_got_sigint) { |