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 <[email protected]>
Authored: Fri Nov 4 14:13:26 2016 +0800
Committer: Freeman Fang <[email protected]>
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();

Reply via email to