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

Jetty 9.4.x 4967 buffer corruption for http2 failures #5001

Merged

Conversation

sbordet
Copy link
Contributor

@sbordet sbordet commented Jun 26, 2020

No description provided.

sbordet added 2 commits June 25, 2020 11:05
Partially reverted the changes introduced in #4855, because they
were working only when sends were synchronous.

Introduced ByteBufferPool.remove(ByteBuffer) to fix the issue.
Now when a concurrent failure happens while frames are being
generated or sent, the buffer is discarded instead of being
recycled, therefore resolving the buffer corruption.

Signed-off-by: Simone Bordet <[email protected]>
@sbordet sbordet linked an issue Jun 26, 2020 that may be closed by this pull request
@sbordet sbordet requested review from lorban and gregw July 2, 2020 09:34
Copy link
Contributor

@lorban lorban left a comment

Choose a reason for hiding this comment

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

LGTM

@sbordet sbordet merged commit ae43b70 into jetty-9.4.x Jul 3, 2020
@sbordet sbordet deleted the jetty-9.4.x-4967-buffer_corruption_for_http2_failures branch July 3, 2020 14:35
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.

Possible buffer corruption in HTTP/2 session failures
2 participants