Skip to content

Conversation

@shinrich
Copy link
Member

Logic error from the HTTP/2 post rework. If you got through this loop multiple times, you will over-consume the receive buffer. I assume we generally do not go through this loop multiple times.

@shinrich shinrich added this to the 10.0.0 milestone Feb 24, 2020
@shinrich shinrich requested a review from masaori335 February 24, 2020 17:41
@shinrich shinrich self-assigned this Feb 24, 2020
@masaori335
Copy link
Contributor

masaori335 commented Feb 24, 2020

I assume we generally do not go through this loop multiple times.

We can get rid of the while loop. If num_written != read_len, the function should return error.

@shinrich shinrich force-pushed the fix-data-frame-consume branch from 3f61cc2 to b626ab3 Compare February 25, 2020 15:44
@shinrich
Copy link
Member Author

Updated the commit to remove the while loop and add error as @masaori335 suggested.

Copy link
Contributor

@masaori335 masaori335 left a comment

Choose a reason for hiding this comment

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

Looks good

@shinrich shinrich merged commit 4094cda into apache:master Feb 28, 2020
@zwoop zwoop modified the milestones: 10.0.0, 9.0.0 Mar 5, 2020
@zwoop
Copy link
Contributor

zwoop commented Mar 5, 2020

Cherry-picked to v9.0.x branch.

@zwoop zwoop modified the milestones: 9.0.0, 8.1.0 Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants