spiral-modules / php-grpc

:electric_plug: Fast and furious GRPC server for PHP applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support specification of additional ServerOptions such as MaxRecvMsgSize

chaseajen opened this issue · comments

it looks like the only supported ServerOptions are related to TLS. the ability to specify additional options — in my case, particularly MaxRecvMsgSize — would be quite useful.

You can actually add an option to the service, the values just simply not exposed through the config cos there is a lot of different values. I would accept PR if anyone wants to add more options.

Will be resolved with #43

Hi, it looks like, that MaxRecvMsgSize option does not work. We use:

github.com/spiral/php-grpc v1.5.0
github.com/spiral/roadrunner v1.8.3

In .rr.yaml (settings by default) we have:

# max receive limit (MB)
MaxRecvMsgSize: 50

But when we send a gRPC request, which is more than 4194304 bytes, then we have an error:

8 RESOURCE_EXHAUSTED: grpc: received message larger than max (5294178 vs. 4194304)

We found, that this error comes from https://github.com/grpc/grpc-go/blob/master/rpc_util.go.

Do you have the same issues or did you even try to send something, which is more than 4 MB?