Skip to content

grpc-web: trailers message is not being decompressed when compressed bit is set #2593

Open
@jhump

Description

@jhump

The final message in a grpc-web response stream has a special bit set that indicates it contains trailers. If the header byte for that message has both the "compressed" and "trailers" bits set, the compressed flag is effectively ignored. It attempts to parse the compressed data, which of course results in an error:

InvalidOperationException: Error parsing badly formatted trailing header.

Having both bits set is definitely valid per the protocol. The protocol spec even has exactly this combination in the examples for header byte.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions