You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/05/12 09:29:37 UTC

[camel] 02/02: CAMEL-18101: camel-core - Pooled exchanges with netty-http/jetty/servlet can cause reference leaks

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

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 42e92328f2a264c472efd804ddb3b020c28c4c69
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu May 12 11:29:15 2022 +0200

    CAMEL-18101: camel-core - Pooled exchanges with netty-http/jetty/servlet can cause reference leaks
---
 .../camel/component/netty/http/handlers/HttpServerChannelHandler.java | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/handlers/HttpServerChannelHandler.java b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/handlers/HttpServerChannelHandler.java
index d918f3cb441..4b36183f539 100644
--- a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/handlers/HttpServerChannelHandler.java
+++ b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/handlers/HttpServerChannelHandler.java
@@ -345,10 +345,6 @@ public class HttpServerChannelHandler extends ServerChannelHandler {
     protected Exchange createExchange(ChannelHandlerContext ctx, Object message) throws Exception {
         Exchange exchange = this.consumer.createExchange(false);
 
-        if (exchange.getUnitOfWork() != null) {
-            System.out.println(">>> UoW is NOT NULL <<< " + exchange);
-        }
-
         // create a new IN message as we cannot reuse with netty
         Message in;
         if (message instanceof FullHttpRequest) {