Skip to content

Blocking stub blocks indefinitely if client exceeds max outbound message size #628

Open
@jackrwoods

Description

When using a blocking stub to frame a grpc message, I am observing that my GRPC call parks the calling thread indefinitely. I always see a logged exception detailing why the request failed, but the GRPC call does not return.

I have set up a repro in this repository: https://github.com/jackrwoods/grpc-problem-repro. I've reproduced this behavior with a "blocking" stub (https://github.com/jackrwoods/grpc-problem-repro/blob/main/src/main/java/org/example/Main.java) and a coroutine stub wrapped with a runBlocking (https://github.com/jackrwoods/grpc-problem-repro/blob/main/src/main/kotlin/org/example/MainKotlinCoroutineVersion.kt). In both cases, the application never reaches the println("Received message") statement.

Is this user (me) error, or is there a workaround?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions