Skip to content

http: add a test case where metadata exceed size limit#7747

Merged
alyssawilk merged 5 commits intoenvoyproxy:masterfrom
soya3129:sizelimit
Aug 1, 2019
Merged

http: add a test case where metadata exceed size limit#7747
alyssawilk merged 5 commits intoenvoyproxy:masterfrom
soya3129:sizelimit

Conversation

@soya3129
Copy link
Contributor

Description: Add a test to cover the case where nghttp2 returns process error because metadata exceed size limit. The PR also adds a few asserts to verify when nghttp2 returns error, no more data is passed to filters (a bug fixed by#6852). This PR is a followup for #6842.
Risk Level: Low.
Testing: N/A
Docs Changes: N/A
Release Notes: N/A

Yang Song added 4 commits July 27, 2019 09:08
Signed-off-by: Yang Song <yasong@google.com>
Signed-off-by: Yang Song <yasong@google.com>
@soya3129
Copy link
Contributor Author

cc @birenroy

return 0;
}

if (stream != nullptr) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for adding the new test!

I'm sold on the test being useful but for the codec changes, I'd prefer rather than the codec have to know the behavior of the HCM, that the HCM actually trigger this by doing something like onDecoderDestroy to the codec if we think the lifetime of the streams in HCM and codec differs.

Alternate if the lifetime of the streams does not differ, I think this PR adds more risk than it removes and we should simply add the test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the review! I see. Reverted the codec change.

Signed-off-by: Yang Song <yasong@google.com>
@alyssawilk alyssawilk merged commit 9a9c193 into envoyproxy:master Aug 1, 2019
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