Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ public ManagedChannel forDescriptor(ApiServiceDescriptor apiServiceDescriptor) {
// Set the message size to max value here. The actual size is governed by the
// buffer size in the layers above.
.maxInboundMessageSize(Integer.MAX_VALUE)
// Disable automatic retries as it introduces complexity and we send long-lived
// rpcs which will exceed the per-rpc retry request buffer and not be retried
// anyway. See
// https://github.com/grpc/proposal/blob/master/A6-client-retries.md#when-retries-are-valid
.disableRetry()
.intercept(interceptors);
if (directExecutor) {
channelBuilder = channelBuilder.directExecutor();
Expand Down