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 4976 httpclient fix null network buffer #5010

Merged

Conversation

sbordet
Copy link
Contributor

@sbordet sbordet commented Jul 1, 2020

No description provided.

lorban and others added 2 commits July 1, 2020 09:24
…llel which can happen when the parser returns handled=true

Signed-off-by: Ludovic Orban <[email protected]>
Reworked handling of asynchronous content by immediately exiting
HttpReceiverOverHTTP.process(), so that there is no race with
other threads that have been scheduled to resume the processing.

The call to HttpReceiver.dispose() that could be triggered by
an asynchronous failure is now performed either by the failing
thread (if the HttpReceiver is not processing) or by an I/O
thread (if the HttpReceiver is processing) similarly to what
happens when terminating the response.

The content decoding has been reworked to perform the required
state changes similarly to what non-decoded content is doing,
as this was completely lacking before (it was actually a side
bug that is now fixed).

Signed-off-by: Simone Bordet <[email protected]>
@sbordet sbordet requested review from gregw and lorban July 1, 2020 18:26
@sbordet sbordet linked an issue Jul 1, 2020 that may be closed by this pull request
Updates after review.

Signed-off-by: Simone Bordet <[email protected]>
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 e095519 into jetty-9.4.x Jul 3, 2020
@sbordet sbordet deleted the jetty-9.4.x-4976-httpclient_fix_null_network_buffer branch July 3, 2020 07:30
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.

HttpClient async content throws NPE in DEBUG log
2 participants