Skip to content

Commit

Permalink
Merge pull request #44855 from alex-pumpkin/fix-grpc-client-44853
Browse files Browse the repository at this point in the history
Respect max message size property fo Quarkus GRPC client (44853)
  • Loading branch information
geoand authored Dec 2, 2024
2 parents 98ddff2 + b26c421 commit d1104d5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
import io.vertx.core.net.PemTrustOptions;
import io.vertx.core.net.SocketAddress;
import io.vertx.grpc.client.GrpcClientChannel;
import io.vertx.grpc.client.GrpcClientOptions;

@SuppressWarnings({ "OptionalIsPresent" })
public class Channels {
Expand Down Expand Up @@ -335,7 +336,9 @@ public static Channel createChannel(String name, Set<String> perClientIntercepto
options.setMetricsName("grpc|" + name);

Vertx vertx = container.instance(Vertx.class).get();
io.vertx.grpc.client.GrpcClient client = io.vertx.grpc.client.GrpcClient.client(vertx, options);
io.vertx.grpc.client.GrpcClient client = io.vertx.grpc.client.GrpcClient.client(vertx,
new GrpcClientOptions().setTransportOptions(options)
.setMaxMessageSize(config.maxInboundMessageSize.orElse(DEFAULT_MAX_MESSAGE_SIZE)));
Channel channel;
if (stork) {
ManagedExecutor executor = container.instance(ManagedExecutor.class).get();
Expand Down

0 comments on commit d1104d5

Please sign in to comment.