eclipse-vertx / vertx-grpc

Development of the gRPC component for Eclipse Vert.x
Eclipse Public License 2.0
42 stars 23 forks source link

Deadline setting in vertx grpc stub client is ignored #76

Closed yizmailovSF closed 4 months ago

yizmailovSF commented 10 months ago

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.