6 ms·
It looks like Protobuf actually has a test suite to ensure compliance with the protocol: https://github.com/protocolbuffers/protobuf/tree/main/conformance#read
by 0xDEAFBEAD 3y ago
It looks like Protobuf actually has a test suite to ensure compliance with the protocol:
https://github.com/protocolbuffers/protobuf/tree/main/conformance#readme https://github.com/protocolbuffers/protobuf/tree/main/confor...
Seems like a good idea for protocols in general to have an official test suite, as a way to address this problem
- sa46 3y agoThe conformance suite tests encode and decode for single messages; you wouldn’t run it for a custom framing implementation; The gRPC interop tests are closer to what you’d want. Framing appears higher up the stack, as an RPC transport, or structured storage like the recordio format referenced by the author. The article sounds like the client expected application/protobuf but the server sent application/custom-protobuf-framing.
- lifthrasiir 3y agoI think it is easy to confuse the serialization format from framing because many serialization formats do self-delimit. And the protobuf terminology of "message" may suggest framing...