Skip to content

CXF-8272: Don't fail a one-way invocation if the response stream can'… - #3586

Merged
coheigea merged 1 commit into
mainfrom
coheigea/CXF-8272
Oct 15, 2026
Merged

coheigea merged 1 commit into
mainfrom
coheigea/CXF-8272

Conversation

@coheigea

Copy link
Copy Markdown
Contributor

…t be drained

After a one-way SOAP call, CXF reads and throws away any leftover response bytes. This is only so the HTTP connection can be reused for the next request. In some environments the JDK had already closed that response stream, so this tidy-up step threw “stream is closed”. That made the whole call fail, even though the request had been delivered and accepted.

The fix makes the tidy-up step best-effort. If draining fails, CXF logs it at FINE level, still closes the stream, and lets the call succeed. HTTP error responses are still reported as before. The patch also adds a test that recreates the “stream already closed” case.

@coheigea
coheigea merged commit 2e16926 into main Oct 15, 2026
7 of 8 checks passed
@coheigea
coheigea deleted the coheigea/CXF-8272 branch October 15, 2026 14:57
coheigea added a commit that referenced this pull request Oct 15, 2026
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.

2 participants