Skip to content

Conversation

@reta
Copy link
Member

@reta reta commented Dec 20, 2025

The InputStream::available() was/is always known to be "best effort" and it is in case of jdk.internal.net.http.ResponseSubscribers.HttpResponseInputStream. CXF has no knowledge if the response will come any time soon or is empty (so we could not really wait / block here).

Considering the options, probably the only way we could make sure the response stream is really empty is to try to issue InputStream::read which may block.

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.

1 participant