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.

@reta reta merged commit a2c0fcb into apache:main Dec 27, 2025
9 of 10 checks passed
reta added a commit that referenced this pull request Dec 27, 2025
reta added a commit that referenced this pull request Dec 27, 2025
…otocol is HTTP/2 (#2792)

(cherry picked from commit a2c0fcb)
(cherry picked from commit d018074)
reta added a commit that referenced this pull request Dec 28, 2025
…otocol is HTTP/2 (#2792)

(cherry picked from commit a2c0fcb)
(cherry picked from commit d018074)
(cherry picked from commit 1b4b7d6)

# Conflicts:
#	systests/transports/src/test/java/org/apache/cxf/systest/http2_jetty/BookStore.java
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