Browse Source

increase inbound message size

pull/1390/head
Chris Lu 5 years ago
parent
commit
64d7d5fe89
  1. 4
      other/java/client/src/main/java/seaweedfs/client/FilerGrpcClient.java

4
other/java/client/src/main/java/seaweedfs/client/FilerGrpcClient.java

@ -39,8 +39,10 @@ public class FilerGrpcClient {
public FilerGrpcClient(String host, int grpcPort, SslContext sslContext) {
this(sslContext == null ?
ManagedChannelBuilder.forAddress(host, grpcPort).usePlaintext() :
ManagedChannelBuilder.forAddress(host, grpcPort).usePlaintext()
.maxInboundMessageSize(1024 * 1024 * 1024) :
NettyChannelBuilder.forAddress(host, grpcPort)
.maxInboundMessageSize(1024 * 1024 * 1024)
.negotiationType(NegotiationType.TLS)
.sslContext(sslContext));

Loading…
Cancel
Save