You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ff...@apache.org on 2016/11/04 06:13:38 UTC
cxf git commit: [CXF-7122]Infinite loop due to AsyncHTTPConduit read
timeout with exhausted connection pool
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 <fr...@gmail.com>
Authored: Fri Nov 4 14:13:26 2016 +0800
Committer: Freeman Fang <fr...@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();