You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2017/11/20 12:04:58 UTC

[camel] branch camel-2.19.x updated: [CAMEL-12016] Since 2.16.3, ChannelFuture was never release when a connection error occurs. The fact is, pool.borrowObject(); (L224) didn't throw connection exception anymore.

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch camel-2.19.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.19.x by this push:
     new 5296db5  [CAMEL-12016] Since 2.16.3, ChannelFuture was never release when a connection error occurs. The fact is, pool.borrowObject(); (L224) didn't throw connection exception anymore.
5296db5 is described below

commit 5296db5a7b0f64db2effc4cc8b3002a8804d651b
Author: dvor4x <dv...@hackerzvoice.net>
AuthorDate: Sat Nov 18 14:54:54 2017 +0100

    [CAMEL-12016] Since 2.16.3, ChannelFuture was never release when a connection error occurs. The fact is, pool.borrowObject(); (L224) didn't throw connection exception anymore.
---
 .../src/main/java/org/apache/camel/component/netty4/NettyProducer.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git a/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyProducer.java b/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyProducer.java
index a375681..cd3d12a 100644
--- a/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyProducer.java
+++ b/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyProducer.java
@@ -642,6 +642,7 @@ public class NettyProducer extends DefaultAsyncProducer {
                 }
                 exchange.setException(cause);
                 callback.done(false);
+                releaseChannel(future);
                 return;
             }
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@camel.apache.org" <co...@camel.apache.org>'].