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

2.x: possible fix for HttpPipelineTest hang #4139

Merged

Conversation

barchetta
Copy link
Member

This is a possible fix for #3301.

The test class SocketHttpClient was creating a new BufferedReader every time it's receive() method was called. This could potentially loose bytes since an undetermined number of bytes could be read and buffered off of the socket, only to be discarded when the BufferedReader was tossed on the garbage heap.

Or at least that is my theory. The test seems more stable after this fix.

@barchetta barchetta added the 2.x Issues for 2.x version branch label Apr 19, 2022
@barchetta barchetta requested a review from spericas April 19, 2022 00:28
@barchetta barchetta self-assigned this Apr 19, 2022
@barchetta barchetta changed the title 2.x: possible fix for hanging HttpPipelineTest hang 2.x: possible fix for HttpPipelineTest hang Apr 19, 2022
Copy link
Member

@spericas spericas left a comment

Choose a reason for hiding this comment

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

LGTM

@barchetta barchetta merged commit 2531383 into helidon-io:helidon-2.x Apr 19, 2022
@barchetta barchetta deleted the 2.x-httppipeline-test-fix branch August 17, 2022 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Issues for 2.x version branch
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants