Skip to content

Received 'Status::internal("Missing request message.")' in case of cancellation by client #2410

@madhurishgupta

Description

@madhurishgupta

Bug Report

Version

Verified it in tonic 0.12 and 0.14.

Platform

  • 24.6.0 Darwin Kernel
  • Verified on linux as well.

Crates

tonic

Description

If the cancellation is sent from the client before the full request message reached the server, it leads to Status::internal("Missing request message.").

I reproduced this issue locally by java gRPC client (with hedging) and tonic server with request size of around 1 MB.

Error is thrown here.

Expected Behaviour:

  • Case1: If the cancellation is sent from the client before the full request message reached the server, then request future must be dropped and no response/error should be returned to the tower layers.
  • Case2: If the cancellation is sent from the client after the full request message reached the server, then request future must be dropped and no response/error should be returned to the tower layers. This is working as expected.

I'm not sure if this is the intended behaviour that needs to be handled by the server. In my opinion, case 1 should drop the future instead of return Status::internal("Missing request message.").

Metadata

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