Skip to content

Revert "Buffer HPACK parsing until the end of a header boundary"#26825

Merged
ctiller merged 1 commit intomasterfrom
revert-26700-hpack-buffering
Jul 29, 2021
Merged

Revert "Buffer HPACK parsing until the end of a header boundary"#26825
ctiller merged 1 commit intomasterfrom
revert-26700-hpack-buffering

Conversation

@ctiller
Copy link
Copy Markdown
Member

@ctiller ctiller commented Jul 29, 2021

Reverts #26700

This PR introduces a dangerous overbuffering condition that's unsolvable with this approach.

@ctiller ctiller requested review from ejona86 and yashykt July 29, 2021 16:05
@ctiller ctiller added the release notes: no Indicates if PR should not be in release notes label Jul 29, 2021
Copy link
Copy Markdown
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

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

As I just commented (#26787 (comment)) you can allow some overbuffering, but not "excessive" overbuffering (tehe) with this approach. I think I did an audit of the implementations and something like that was predominant. That said, I would recommend still streaming but at a coarser granularity.

Approving to let you revert quickly. If you want to patch-up instead of revert by limiting the buffering size, that is still an option.

@ctiller
Copy link
Copy Markdown
Member Author

ctiller commented Jul 29, 2021

I'd rather not destroy the connection on a badly formed header... I think I can rework the simplification to parse one element at a time, and that's probably preferable

@ejona86
Copy link
Copy Markdown
Member

ejona86 commented Jul 29, 2021

SGTM. That's my preference as well.

@ctiller ctiller enabled auto-merge (squash) July 29, 2021 17:47
@ctiller
Copy link
Copy Markdown
Member Author

ctiller commented Jul 29, 2021

Turning on auto-merge... I'm likely to be distracted later, and the sooner this is expunged from the build the better.

@ctiller ctiller merged commit 613b90b into master Jul 29, 2021
@nicolasnoble nicolasnoble deleted the revert-26700-hpack-buffering branch August 5, 2021 18:27
Vignesh2208 pushed a commit to Vignesh2208/grpc that referenced this pull request Aug 20, 2021
lidizheng pushed a commit to lidizheng/grpc that referenced this pull request Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release notes: no Indicates if PR should not be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants