vertx-grpc icon indicating copy to clipboard operation
vertx-grpc copied to clipboard

Deadline setting in vertx grpc stub client is ignored

Open yizmailovSF opened this issue 2 years ago • 0 comments

Version

4.4.1

Context

When using vertx grpc client it seems that callOptions that holds deadline configuration is not being propagated to VertxClientCall.

Steps to reproduce

Create a vertx stub:

GrpcClientChannel channel =
    new GrpcClientChannel(
        GrpcClient.client(vertx),
        SocketAddress.inetSocketAddress(
            port, host));
SomeVertxStub stub = VertxSomeServiceGrpc.newVertxStub(
        channel);

Use this stub to make calls with deadline:

  stub
      .withDeadlineAfter(1, TimeUnit.MILLISECONDS)

The deadline which is a part callOptions is not being sent to VertxClientCall and not taken into account when making grpc calls so there is no way to set request timeout for grpc client calls.

yizmailovSF avatar Nov 08 '23 21:11 yizmailovSF