v0.2.3
What's Changed
- Honor
grpc.max_receive_message_lengthandgrpc.max_send_message_lengthchannel options — These channel args are now mapped to tonic'smax_decoding_message_sizeandmax_encoding_message_size. Without this fix, tonic's default 4 MiB decoding limit applied to all calls regardless of the PHP-side configuration, causing `"decoded message length too large"` errors on legitimate large responses. The C-based ext-grpc honors these natively; this brings grpc-php-rs to parity. Thanks @jumper423 in #10.
Usage
\$channel = new \\Grpc\\Channel('localhost:50051', [
'credentials' => \\Grpc\\ChannelCredentials::createInsecure(),
'grpc.max_receive_message_length' => 128 * 1024 * 1024, // 128 MiB
'grpc.max_send_message_length' => -1, // unlimited
]);Semantics:
- Value `0` or unset → tonic default (4 MiB decoding, unlimited encoding)
- Value `-1` → unlimited
- Value `> 0` → exact byte limit
New Contributors
- @jumper423 made their first contribution in #10
Full Changelog: v0.2.2...v0.2.3