On Wed, 26 Feb 2025 11:55:56 GMT, Daniel Fuchs <dfu...@openjdk.org> wrote:

>> Hi - Please find here a PR that improves streaming strategy in the 
>> HttpClient.
>> 
>> The HttpClient currently waits until the full request body has been sent 
>> before starting to listen for a response. This is not optimal, in particular 
>> in cases where the server sends back e.g. 500 without even reading the body. 
>> It also prevents starting to stream the response body from the server before 
>> having sent the full request body, which prevents the server to stream back 
>> the request body to the client without reading it fully first.
>> 
>> While writing a test to verify the fix, I also noticed a few places where 
>> additional tasks needed to be performed asynchronously (= delegated to the 
>> executor) to support this.
>
> Daniel Fuchs has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Review feedback

I have found some more issues with HTTP/1.1. I am going to close and withdraw 
this PR for now to get more time to work on it.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/23716#issuecomment-2687611276

Reply via email to