-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow setting a message max size #264
Comments
@l1an0 @LucioFranco What is the maximum message size allowed now? As far as I understand, gRPC's default max size in spec is 4MB but tonic server seems to be capable of receive larger requests. |
I believe there is a cap with h2, its a bug. related issue is here for that @akiradeveloper #352 |
@LucioFranco Thanks for you reply but my question is why tonic doesn't have an upper limit as official implementations do https://github.com/grpc/grpc/releases/tag/v1.29.0
Is that your intention not to comply with the official behaviors? |
I don't believe this is specified in the protocol definition so it was never added initially. Would be happy to add it if people want this behavior.
Just because gRPC core does it, doesn't mean its "official" per-say. Each implemenation of gRPC has its own niche things. I would love to add this but I don't have the time currently. I would totally accept a PR though. |
* tonic: add max http2 frame size to server. Exposes option to configure the max http2 frame size used by the underlying hyper server via the `tonic::transport::Server` builder. Refs: #264 * fix http2_* methods broken in merge conflict
It seems this was fixed by #529. Just re-open if that is not the case. |
Unless I'm misreading the spec, the h2 maximum frame size is unrelated to the maximum gRPC message size: https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#data-frames. From some quick testing, it appears that tonic will consume arbitrarily large messages. |
Yes, I believe the C++ implementation has a non-h2 limit as well. We could add this via |
Feature Request
Motivation
See tensorflow/serving#1382, if the message size is large, tonic currently does not support changing the max message size.
Proposal
Expose the API the change allowed message size.
The text was updated successfully, but these errors were encountered: