cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject cxf git commit: [CXF-7122]Infinite loop due to AsyncHTTPConduit read timeout with exhausted connection pool
Date Fri, 04 Nov 2016 06:14:18 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes a331c5420 -> 4c97b1134


[CXF-7122]Infinite loop due to AsyncHTTPConduit read timeout with exhausted connection pool

(cherry picked from commit 87f503fe2420695769635dca272c7544d8c283c8)


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/4c97b113
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/4c97b113
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/4c97b113

Branch: refs/heads/3.1.x-fixes
Commit: 4c97b11341126d037f3361d7d08e38321bf12fd5
Parents: a331c54
Author: Freeman Fang <freeman.fang@gmail.com>
Authored: Fri Nov 4 14:13:26 2016 +0800
Committer: Freeman Fang <freeman.fang@gmail.com>
Committed: Fri Nov 4 14:14:00 2016 +0800

----------------------------------------------------------------------
 .../apache/cxf/transport/http/asyncclient/SharedOutputBuffer.java   | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/4c97b113/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/SharedOutputBuffer.java
----------------------------------------------------------------------
diff --git a/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/SharedOutputBuffer.java
b/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/SharedOutputBuffer.java
index 1e3ed96..49cb9d6 100644
--- a/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/SharedOutputBuffer.java
+++ b/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/SharedOutputBuffer.java
@@ -118,6 +118,7 @@ public class SharedOutputBuffer extends ExpandableBuffer {
 
     public int produceContent(final ContentEncoder encoder, final IOControl ioc) throws IOException
{
         if (this.shutdown) {
+            encoder.complete();
             return -1;
         }
         this.lock.lock();


Mime
View raw message