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 e9f50a51c3a Bump org.apache.httpcomponents.core5:httpcore5 from 5.4.3 
to 5.4.4 (#3508)
e9f50a51c3a is described below

commit e9f50a51c3a24802973825dadcd76e81ca4803d4
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Mon Oct 5 09:14:21 2026 -0400

    Bump org.apache.httpcomponents.core5:httpcore5 from 5.4.3 to 5.4.4 (#3508)
    
    * Bump org.apache.httpcomponents.core5:httpcore5 from 5.4.3 to 5.4.4
    
    Bumps 
[org.apache.httpcomponents.core5:httpcore5](https://github.com/apache/httpcomponents-core)
 from 5.4.3 to 5.4.4.
    - 
[Changelog](https://github.com/apache/httpcomponents-core/blob/rel/v5.4.4/RELEASE_NOTES.txt)
    - 
[Commits](https://github.com/apache/httpcomponents-core/compare/rel/v5.4.3...rel/v5.4.4)
    
    ---
    updated-dependencies:
    - dependency-name: org.apache.httpcomponents.core5:httpcore5
      dependency-version: 5.4.4
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    
    * Decrease HTTP/1.1 buffer size for 32kb to 16kb
    
    ---------
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] 
<49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Andriy Redko <[email protected]>
---
 parent/pom.xml                                               |  2 +-
 .../cxf/transport/http/asyncclient/hc5/AsyncHTTPConduit.java |  2 +-
 .../http/asyncclient/hc5/AsyncHTTPConduitFactory.java        | 12 +++++++++++-
 3 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/parent/pom.xml b/parent/pom.xml
index 561c8c01ece..fb86baf1475 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -134,7 +134,7 @@
         
<cxf.httpcomponents.core.version.range>[4.3,4.5.0)</cxf.httpcomponents.core.version.range>
         
<cxf.httpcomponents.core.version>4.4.16</cxf.httpcomponents.core.version>
         
<cxf.httpcomponents.client5.version>5.6.4</cxf.httpcomponents.client5.version>
-        
<cxf.httpcomponents.core5.version>5.4.3</cxf.httpcomponents.core5.version>
+        
<cxf.httpcomponents.core5.version>5.4.4</cxf.httpcomponents.core5.version>
         <cxf.jackson.version>3.2.3</cxf.jackson.version>
         <cxf.jackson.databind.version>3.2.3</cxf.jackson.databind.version>
         <cxf.jackson.annotations.version>2.22</cxf.jackson.annotations.version>
diff --git 
a/rt/transports/http-hc5/src/main/java/org/apache/cxf/transport/http/asyncclient/hc5/AsyncHTTPConduit.java
 
b/rt/transports/http-hc5/src/main/java/org/apache/cxf/transport/http/asyncclient/hc5/AsyncHTTPConduit.java
index 382425e6a45..f00d32e6676 100644
--- 
a/rt/transports/http-hc5/src/main/java/org/apache/cxf/transport/http/asyncclient/hc5/AsyncHTTPConduit.java
+++ 
b/rt/transports/http-hc5/src/main/java/org/apache/cxf/transport/http/asyncclient/hc5/AsyncHTTPConduit.java
@@ -893,7 +893,7 @@ public class AsyncHTTPConduit extends HttpClientHTTPConduit 
{
             sslURL = null;
 
             //reset the buffers
-            int bufSize = csPolicy.getChunkLength() > 0 ? 
csPolicy.getChunkLength() : 16320;
+            int bufSize = csPolicy.getChunkLength() > 0 ? 
csPolicy.getChunkLength() : 32 * 1024;
             inbuf = new SharedInputBuffer(bufSize);
             outbuf = new SharedOutputBuffer(bufSize);
             try {
diff --git 
a/rt/transports/http-hc5/src/main/java/org/apache/cxf/transport/http/asyncclient/hc5/AsyncHTTPConduitFactory.java
 
b/rt/transports/http-hc5/src/main/java/org/apache/cxf/transport/http/asyncclient/hc5/AsyncHTTPConduitFactory.java
index bf1a7c8a787..63f9eb0a62c 100644
--- 
a/rt/transports/http-hc5/src/main/java/org/apache/cxf/transport/http/asyncclient/hc5/AsyncHTTPConduitFactory.java
+++ 
b/rt/transports/http-hc5/src/main/java/org/apache/cxf/transport/http/asyncclient/hc5/AsyncHTTPConduitFactory.java
@@ -52,6 +52,7 @@ import 
org.apache.hc.client5.http.ssl.DefaultClientTlsStrategy;
 import org.apache.hc.core5.http.HttpRequest;
 import org.apache.hc.core5.http.HttpResponse;
 import org.apache.hc.core5.http.ProtocolException;
+import org.apache.hc.core5.http.config.Http1Config;
 import org.apache.hc.core5.http.config.Lookup;
 import org.apache.hc.core5.http.config.RegistryBuilder;
 import org.apache.hc.core5.http.nio.ssl.TlsStrategy;
@@ -86,6 +87,9 @@ public class AsyncHTTPConduitFactory implements 
HTTPConduitFactory {
     public static final String THREAD_COUNT = 
"org.apache.cxf.transport.http.async.ioThreadCount";
     public static final String SELECT_INTERVAL = 
"org.apache.cxf.transport.http.async.selectInterval";
 
+    //Buffers
+    public static final String BUFFER_SIZE = 
"org.apache.cxf.transport.http.async.bufferSize";
+
     //CXF specific
     public static final String USE_POLICY = 
"org.apache.cxf.transport.http.async.usePolicy";
 
@@ -155,7 +159,7 @@ public class AsyncHTTPConduitFactory implements 
HTTPConduitFactory {
     private int soTimeout = 
IOReactorConfig.DEFAULT.getSoTimeout().toMillisecondsIntBound();
     private boolean soKeepalive = IOReactorConfig.DEFAULT.isSoKeepAlive();
     private boolean tcpNoDelay = true;
-
+    private int bufferSize = 16 * 1024;
 
     AsyncHTTPConduitFactory() {
         super();
@@ -203,6 +207,7 @@ public class AsyncHTTPConduitFactory implements 
HTTPConduitFactory {
         connectionTTL = getInt(s.get(CONNECTION_TTL), connectionTTL);
         connectionMaxIdle = getInt(s.get(CONNECTION_MAX_IDLE), 
connectionMaxIdle);
         maxPerRoute = getInt(s.get(MAX_PER_HOST_CONNECTIONS), maxPerRoute);
+        bufferSize = getInt(s.get(BUFFER_SIZE), bufferSize);
 
         if (!clients.isEmpty()) {
             for (Map.Entry<HTTPClientPolicy, AsyncClient> entry: 
clients.entrySet()) {
@@ -384,6 +389,7 @@ public class AsyncHTTPConduitFactory implements 
HTTPConduitFactory {
             .custom()
             .setConnectionManager(connectionManager)
             .setRedirectStrategy(redirectStrategy)
+            .setHttp1Config(http1Config())
             .setDefaultCookieStore(new BasicCookieStore() {
                 private static final long serialVersionUID = 1L;
                 public void addCookie(Cookie cookie) {
@@ -404,6 +410,10 @@ public class AsyncHTTPConduitFactory implements 
HTTPConduitFactory {
         return new AsyncClient(connectionManager, client);
     }
 
+    protected Http1Config http1Config() {
+        return Http1Config.custom().setBufferSize(bufferSize).build();
+    }
+
     //provide a hook to customize the builder
     protected void adaptClientBuilder(HttpAsyncClientBuilder 
httpAsyncClientBuilder) {
     }

Reply via email to