]> git.kaiwu.me - haproxy.git/commit
REGTESTS: protobuf: cover the gRPC message compression flag
authorFrederic Lecaille <flecaille@haproxy.com>
Thu, 19 Nov 2026 09:53:40 +0000 (10:53 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 19 Nov 2026 09:57:16 +0000 (10:57 +0100)
commite1b6bc97c812a80cbf785d0ce49466bf1fdd6535
treeea6122820f250b9473ff8fc26930cf56cbc4c971
parent9559d681e94c8b4f116c9fb03e6d1ec0b0e98d32
REGTESTS: protobuf: cover the gRPC message compression flag

Regression test for "BUG/MINOR: sample: do not parse compressed gRPC
messages in ungrpc".

Two bodies are added to the frontend which already walks a body of two
gRPC messages:

  - "01 00000005 0a03616161 00 00000002 1007" flags the first message
    compressed. Its payload must not be parsed, so x-g1 stays empty
    instead of reading "aaa". x-g2 must still find 7 in the second
    message, which checks the skip resumes on a message boundary.

  - "02 00000002 1007" sets an invalid flag, so the walk must stop and
    x-g2 must stay empty.

A failing expect aborts the script, so the second body is only observed
after the fix, not before it.
reg-tests/protobuf/grpc.vtc