This is an automated email from the ASF dual-hosted git repository.
reta pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/main by this push:
new 6f8224e23d5 Respect the AsyncRequestProducer contract by properly
implementing available() method (#3235)
6f8224e23d5 is described below
commit 6f8224e23d5e1b18bed17e4d7a24522849fb6823
Author: Andriy Redko <[email protected]>
AuthorDate: Mon Jun 29 09:25:25 2026 -0400
Respect the AsyncRequestProducer contract by properly implementing
available() method (#3235)
* Respect the AsyncRequestProducer contract by properly implementing
available() method
* Address code review comments
---
.../cxf/transport/http/asyncclient/hc5/CXFHttpAsyncRequestProducer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/rt/transports/http-hc5/src/main/java/org/apache/cxf/transport/http/asyncclient/hc5/CXFHttpAsyncRequestProducer.java
b/rt/transports/http-hc5/src/main/java/org/apache/cxf/transport/http/asyncclient/hc5/CXFHttpAsyncRequestProducer.java
index 896dcfd68c4..83eed5276e9 100644
---
a/rt/transports/http-hc5/src/main/java/org/apache/cxf/transport/http/asyncclient/hc5/CXFHttpAsyncRequestProducer.java
+++
b/rt/transports/http-hc5/src/main/java/org/apache/cxf/transport/http/asyncclient/hc5/CXFHttpAsyncRequestProducer.java
@@ -94,7 +94,7 @@ public class CXFHttpAsyncRequestProducer implements
AsyncRequestProducer {
@Override
public int available() {
- return 0;
+ return Integer.MAX_VALUE;
}
@Override