-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Bug: When use gzip
and call with MaxCallRecvMsgSize(math.MaxInt64)
, will read 0 byte.
#6119
Comments
This is definitely wrong. The most you'd ever want to do is |
You're right, in actual business scenarios, the received data will never reach I want to emphasize a point that the original available configuration of |
As mentioned in the PR, this could be fixed by limiting the allowable values in |
Yes, it is possible to know if the limit is exceeded without reading out all the bytes. Now it looks like there is no better way to do this than to change the |
Sorry, I recently discovered that it has been reactivated. Do you have any suitable ways to fix this issue? |
@catundercar are you interested in continuing to work on this? |
Yep, but I have no good idea. 😂 |
This issue is labeled as requiring an update from the reporter, and no update has been received after 6 days. If no update is provided in the next 7 days, this issue will be automatically closed. |
@purnesh42H please assign me this issue |
@purnesh42H while repro getting the as expected response (UnaryEcho call returned "compress", ) |
@purnesh42H have a look to the PR [https://github.com/infovivek2020/pull/2] I am able to repro in local |
@purnesh42H Please have a look to the PR on applied change https://github.com/grpc/grpc-go/issues/4552 we do not have this issue |
@infovivek2020 please confirm if this issue is a duplicate of #4552 |
This issue is duplicate one, it is resolved by PR https://github.com/grpc/grpc-go/issues/4552 |
Closing this issue as this is marked as a duplicate of #4552 |
NOTE: if you are reporting is a potential security vulnerability or a crash,
please follow our CVE process at
https://github.com/grpc/proposal/blob/master/P4-grpc-cve-process.md instead of
filing an issue here.
Please see the FAQ in our main README.md, then answer the questions below
before submitting your issue.
What version of gRPC are you using?
master
What version of Go are you using (
go version
)?1.19.2
What operating system (Linux, Windows, …) and version?
Linux
What did you do?
If possible, provide a recipe for reproducing the error.
like this demo:
https://github.com/grpc/grpc-go/tree/master/examples/features/compression
I called with
grpc.MaxCallRecvMsgSize(math.MaxInt64)
And then, I got this result:
The response
message
was""
.What did you expect to see?
The text was updated successfully, but these errors were encountered: