camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: CAMEL-9738 Thread leak for camel-mina2 consumers. Thanks to Thomas Papke for the patch.
Date Tue, 22 Mar 2016 12:15:31 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.16.x 0dc9ee6e0 -> a1fc0c82f


CAMEL-9738 Thread leak for camel-mina2 consumers. Thanks to Thomas Papke for the patch.


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

Branch: refs/heads/camel-2.16.x
Commit: a1fc0c82ff927266b63b5811caca8790324c4ad7
Parents: 0dc9ee6
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Tue Mar 22 13:06:55 2016 +0100
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Tue Mar 22 13:11:25 2016 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/camel/component/mina2/Mina2Consumer.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/a1fc0c82/components/camel-mina2/src/main/java/org/apache/camel/component/mina2/Mina2Consumer.java
----------------------------------------------------------------------
diff --git a/components/camel-mina2/src/main/java/org/apache/camel/component/mina2/Mina2Consumer.java
b/components/camel-mina2/src/main/java/org/apache/camel/component/mina2/Mina2Consumer.java
index 86cc421..9e58365 100644
--- a/components/camel-mina2/src/main/java/org/apache/camel/component/mina2/Mina2Consumer.java
+++ b/components/camel-mina2/src/main/java/org/apache/camel/component/mina2/Mina2Consumer.java
@@ -140,6 +140,9 @@ public class Mina2Consumer extends DefaultConsumer {
         if (workerPool != null) {
             workerPool.shutdown();
         }
+        if (acceptor != null){
+            acceptor.dispose(true);
+        }
         super.doShutdown();
     }
    


Mime
View raw message