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:13:38 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 92279f27c -> 87f503fe2


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


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

Branch: refs/heads/master
Commit: 87f503fe2420695769635dca272c7544d8c283c8
Parents: 92279f2
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:13:26 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/87f503fe/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