The camel component "netty4-http" forwards a bad response (exception + http code 200)

Solution In Progress - Updated -

Issue

  • In case of connection reset of the server, the camel netty4-http component forwards a bad response: HTTP Code 200 with the Exception Connection Reset:

    HTTP/1.1 200 OK
    content-length=1310
    content-type=text/plain
    connection=keep-alive
    java.io.IOException: Connection reset by peer
            at java.base/sun.nio.ch.FileDispatcherImpl.read0(Native Method)
            at java.base/sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
            at java.base/sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:276)
            at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:233)
            at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:223)
            at java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:356)
            at io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:253)
            at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)
            at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:350)
            at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:151)
            at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:719)
            at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)
            at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)
            at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
            at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
            at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
            at java.base/java.lang.Thread.run(Thread.java:829)
    

Environment

  • Red Hat Fuse (Fuse): 7.11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content