diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-07-16 00:33:54 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-07-16 00:33:54 -0700 |
| commit | 64d7d5fe89f04ee0b977aad4d658c702c591f760 (patch) | |
| tree | f276e5eb2b56d9d99f3cdabd38c3b06dd096f101 /other/java | |
| parent | 7bca72deedb872402b4e597976eb198f3dad2d74 (diff) | |
| download | seaweedfs-64d7d5fe89f04ee0b977aad4d658c702c591f760.tar.xz seaweedfs-64d7d5fe89f04ee0b977aad4d658c702c591f760.zip | |
increase inbound message size
Diffstat (limited to 'other/java')
| -rw-r--r-- | other/java/client/src/main/java/seaweedfs/client/FilerGrpcClient.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/other/java/client/src/main/java/seaweedfs/client/FilerGrpcClient.java b/other/java/client/src/main/java/seaweedfs/client/FilerGrpcClient.java index 3f5d1e8e9..57b67f6b0 100644 --- a/other/java/client/src/main/java/seaweedfs/client/FilerGrpcClient.java +++ b/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)); |
