Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fa00546

Browse files
author
Hao Ziyu
committedJun 14, 2019
Remove the deprecated SetMaxMessageSize method
1 parent c334dc5 commit fa00546

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎tensorflow_serving/model_servers/server.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ Status Server::BuildAndStart(const Options& server_options) {
303303
}
304304
builder.RegisterService(model_service_.get());
305305
builder.RegisterService(prediction_service_.get());
306-
builder.SetMaxMessageSize(tensorflow::kint32max);
306+
builder.SetMaxReceiveMessageSize(tensorflow::kint32max);
307+
builder.SetMaxSendMessageSize(tensorflow::kint32max);
307308
const std::vector<GrpcChannelArgument> channel_arguments =
308309
parseGrpcChannelArgs(server_options.grpc_channel_arguments);
309310
for (GrpcChannelArgument channel_argument : channel_arguments) {

0 commit comments

Comments
 (0)
Please sign in to comment.