problem: breaks grpc connection on large messages

This commit is contained in:
Igor Artamonov
2022-03-05 20:07:51 -05:00
parent 2b8603df98
commit bb45fa0699

View File

@@ -69,6 +69,8 @@ class GrpcUpstreams(
fun start(): Flux<UpstreamChange> {
val channel: ManagedChannelBuilder<*> = if (auth != null && StringUtils.isNotEmpty(auth.ca)) {
NettyChannelBuilder.forAddress(host, port)
// some messages are very large. many of them in megabytes, some even in gigabytes (ex. ETH Traces)
.maxInboundMessageSize(Int.MAX_VALUE)
.useTransportSecurity()
.enableRetry()
.maxRetryAttempts(3)