diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/remote/RemoteUtils.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/remote/RemoteUtils.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/remote/RemoteUtils.java b/src/main/java/com/google/devtools/build/lib/remote/RemoteUtils.java index d890829142..845f5411fe 100644 --- a/src/main/java/com/google/devtools/build/lib/remote/RemoteUtils.java +++ b/src/main/java/com/google/devtools/build/lib/remote/RemoteUtils.java @@ -23,9 +23,11 @@ import io.grpc.netty.NettyChannelBuilder; @ThreadSafe public final class RemoteUtils { public static ManagedChannel createChannel(String target, ChannelOptions channelOptions) { - NettyChannelBuilder builder = NettyChannelBuilder.forTarget(target); - builder.negotiationType( - channelOptions.tlsEnabled() ? NegotiationType.TLS : NegotiationType.PLAINTEXT); + NettyChannelBuilder builder = + NettyChannelBuilder.forTarget(target) + .negotiationType( + channelOptions.tlsEnabled() ? NegotiationType.TLS : NegotiationType.PLAINTEXT) + .maxMessageSize(channelOptions.maxMessageSize()); if (channelOptions.getSslContext() != null) { builder.sslContext(channelOptions.getSslContext()); if (channelOptions.getTlsAuthorityOverride() != null) { |