Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36E84175ED for ; Sun, 4 Jan 2015 01:48:55 +0000 (UTC) Received: (qmail 90183 invoked by uid 500); 4 Jan 2015 01:48:50 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 90031 invoked by uid 500); 4 Jan 2015 01:48:50 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 90005 invoked by uid 99); 4 Jan 2015 01:48:50 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Jan 2015 01:48:50 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id D092AA3DCFC; Sun, 4 Jan 2015 01:48:49 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ningjiang@apache.org To: commits@camel.apache.org Date: Sun, 04 Jan 2015 01:48:50 -0000 Message-Id: <77a409cda07d4ed9bb62625c226a2965@git.apache.org> In-Reply-To: <1da2f08799314266ac22235754fc6900@git.apache.org> References: <1da2f08799314266ac22235754fc6900@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/3] camel git commit: CAMEL-8193 Fixed the BlockingOperationException of camel-netty4 with thanks to Mark CAMEL-8193 Fixed the BlockingOperationException of camel-netty4 with thanks to Mark Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/7a7e8a5c Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7a7e8a5c Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7a7e8a5c Branch: refs/heads/camel-2.14.x Commit: 7a7e8a5c00232ffa9a4f4c1c4f73049649c46f33 Parents: 0878934 Author: Willem Jiang Authored: Sun Jan 4 09:39:39 2015 +0800 Committer: Willem Jiang Committed: Sun Jan 4 09:47:00 2015 +0800 ---------------------------------------------------------------------- .../java/org/apache/camel/component/netty4/NettyHelper.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/7a7e8a5c/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyHelper.java ---------------------------------------------------------------------- diff --git a/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyHelper.java b/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyHelper.java index 5a25928..f1ef923 100644 --- a/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyHelper.java +++ b/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyHelper.java @@ -117,8 +117,11 @@ public final class NettyHelper { */ public static void close(Channel channel) { if (channel != null) { - LOG.trace("Closing channel: {}", channel); - channel.close().syncUninterruptibly(); + channel.close().addListener(new ChannelFutureListener() { + public void operationComplete(ChannelFuture future) { + LOG.trace("Channel closed: {}", future.channel()); + } + }); } }