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

[refactor] Change JettyHttpClient#sendAsync method to not read full response in memory #4201

Closed
manusa opened this issue Jun 10, 2022 · 1 comment · Fixed by #4430
Closed
Assignees
Milestone

Comments

@manusa
Copy link
Member

manusa commented Jun 10, 2022

Is your enhancement related to a problem? Please describe

Currently, the JettyHttpClient#sendAsync method reads the response completely in-memory before completing the future, even for streaming return types (Readable or InputStream).

Describe the solution you'd like

Provide alternative response listener implementation for InputStream and Readable so that the future is complete as soon as the response is received and we pipe the packets as an InputStream.

Describe alternatives you've considered

No response

Additional context

No response

@manusa manusa self-assigned this Jun 10, 2022
@manusa manusa added this to the 6.x milestone Jun 10, 2022
@shawkins
Copy link
Contributor

ExecWatchInputStream can be adapted for use with http logic as well.

@shawkins shawkins modified the milestones: 6.x, 6.1.0 Jul 6, 2022
@manusa manusa modified the milestones: 6.1.0, 6.2.0 Aug 31, 2022
shawkins added a commit to shawkins/kubernetes-client that referenced this issue Sep 19, 2022
shawkins added a commit to shawkins/kubernetes-client that referenced this issue Sep 30, 2022
shawkins added a commit to shawkins/kubernetes-client that referenced this issue Oct 5, 2022
…alls

also converting jetty to fully non-blocking

and adapting the body delivery for jdk for use with sendAsync logic - we
need the AsyncBody to be available immediately
shawkins added a commit to shawkins/kubernetes-client that referenced this issue Oct 5, 2022
…alls

also converting jetty to fully non-blocking

and adapting the body delivery for jdk for use with sendAsync logic - we
need the AsyncBody to be available immediately
shawkins added a commit to shawkins/kubernetes-client that referenced this issue Oct 6, 2022
…alls

also converting jetty to fully non-blocking

and adapting the body delivery for jdk for use with sendAsync logic - we
need the AsyncBody to be available immediately
shawkins added a commit to shawkins/kubernetes-client that referenced this issue Oct 6, 2022
…alls

also converting jetty to fully non-blocking

and adapting the body delivery for jdk for use with sendAsync logic - we
need the AsyncBody to be available immediately
shawkins added a commit to shawkins/kubernetes-client that referenced this issue Oct 18, 2022
shawkins added a commit to shawkins/kubernetes-client that referenced this issue Oct 18, 2022
@manusa manusa modified the milestones: 6.2.0, 6.x, 6.3.0 Oct 18, 2022
shawkins added a commit to shawkins/kubernetes-client that referenced this issue Nov 22, 2022
shawkins added a commit to shawkins/kubernetes-client that referenced this issue Nov 22, 2022
shawkins added a commit to shawkins/kubernetes-client that referenced this issue Nov 22, 2022
adding missing test timeouts
correcting the wait in HttpClientReadableByteChannel
manusa added a commit that referenced this issue Nov 29, 2022
fix #4201: generalizing sendAsync support
shawkins added a commit to shawkins/kubernetes-client that referenced this issue Nov 29, 2022
shawkins added a commit to shawkins/kubernetes-client that referenced this issue Nov 29, 2022
shawkins added a commit to shawkins/kubernetes-client that referenced this issue Nov 29, 2022
manusa added a commit that referenced this issue Nov 30, 2022
fix #4201: moving consumeLines out of the clients
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 a pull request may close this issue.

2 participants