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:19:34 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.15.x 2fc8bed4e -> 7db36a803


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/7db36a80
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7db36a80
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7db36a80

Branch: refs/heads/camel-2.15.x
Commit: 7db36a803feede0d7fb0731c9d42b437fd075c0e
Parents: 2fc8bed
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:16:17 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/7db36a80/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