You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/03/28 19:07:43 UTC

[GitHub] [camel] samratdhillon edited a comment on pull request #5273: Fixing LEAK: ByteBuf.release() when using circuit breaker with netty http producer

samratdhillon edited a comment on pull request #5273:
URL: https://github.com/apache/camel/pull/5273#issuecomment-808943594


   Sample to reproduce the problem
   
   
   `public class CamelRoute extends RouteBuilder{
       @Override
       public void configure() throws Exception {
   
           restConfiguration()
           .component("netty-http")
           .host("0.0.0.0")
           .port(8081)
           .bindingMode(RestBindingMode.json);
   
           rest().get("/demo").produces("text/plain").route()
           .transform()
           .constant("demo page");
   
           rest().get("/demo/get").route()
           .circuitBreaker()
           .resilience4jConfiguration().timeoutEnabled(true).timeoutDuration(10000)
           .end()
           .log(LoggingLevel.INFO, "incoming request")
           .to("rest:get:demo?host=localhost:8081")
           .onFallback().transform().constant("timeout")
           .end();
       }
   }`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org