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

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

commit f0f826d192587d3196021da9a57733826da4d9e1
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue Feb 23 16:46:24 2021 +0100

    CAMEL-16222: PooledExchangeFactory experiment
---
 .../camel/component/netty/http/handlers/HttpServerChannelHandler.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 c3409d8..ded58a9 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,7 +345,7 @@ public class HttpServerChannelHandler extends 
ServerChannelHandler {
     protected Exchange createExchange(ChannelHandlerContext ctx, Object 
message) throws Exception {
         Exchange exchange = consumer.createExchange(false);
 
-        // TODO: optimize to avoid creating new NettyHttpMessage
+        // create a new IN message as we cannot reuse with netty
         Message in;
         if (message instanceof FullHttpRequest) {
             FullHttpRequest request = (FullHttpRequest) message;

Reply via email to