Skip to content
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

fake_upstream: subtract already read bytes from required frame length #29890

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

ohadvano
Copy link
Contributor

@ohadvano ohadvano commented Oct 1, 2023

Additional Description: when reading gRPC frame in FakeStream, in case a gRPC frame is received in multiple data payloads, it's required to subtract the count of bytes already read on previous payloads from the expected bytes left to wait for. Otherwise - FakeStream will keep waiting for the original frame length, although the body_ has already been drained from the first data payload.

Copy link
Member

@zuercher zuercher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this fix a flaky test or is it related to some other work (e.g. in another PR)?

@ohadvano
Copy link
Contributor Author

ohadvano commented Oct 2, 2023

I got to this bug while trying to fix the flaky tests as described in: #29518
This wasn't the main reason the tests are flaking, but one of them

@zuercher zuercher merged commit 335677f into envoyproxy:main Oct 2, 2023
@ohadvano ohadvano deleted the fix_grpc_decoder branch October 2, 2023 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants