Skip to content

Commit a99ac62

Browse files
Schuyler Metcalfdsyer
Schuyler Metcalf
authored andcommitted
Fixes issue with maxIncomingMessageSize not being set correctly for clients
Signed-off-by: Schuyler Metcalf <[email protected]>
1 parent b7d8fbe commit a99ac62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-grpc-spring-boot-autoconfigure/src/main/java/org/springframework/grpc/autoconfigure/client/ClientPropertiesChannelBuilderCustomizer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void customize(String authority, T builder) {
5353
mapper.from(channel.getDefaultLoadBalancingPolicy()).to(builder::defaultLoadBalancingPolicy);
5454
}
5555
mapper.from(channel.getMaxInboundMessageSize()).asInt(DataSize::toBytes).to(builder::maxInboundMessageSize);
56-
mapper.from(channel.getMaxInboundMetadataSize()).asInt(DataSize::toBytes).to(builder::maxInboundMessageSize);
56+
mapper.from(channel.getMaxInboundMetadataSize()).asInt(DataSize::toBytes).to(builder::maxInboundMetadataSize);
5757
mapper.from(channel.getKeepAliveTime()).to(durationProperty(builder::keepAliveTime));
5858
mapper.from(channel.getKeepAliveTimeout()).to(durationProperty(builder::keepAliveTimeout));
5959
mapper.from(channel.getIdleTimeout()).to(durationProperty(builder::idleTimeout));

0 commit comments

Comments
 (0)