Netty + TCP connection closing out after few minutes in JBoss Fuse
Issue
-
This is a simple TCP connection using Netty, sending a String message (see below), and receiving a String message back. We are able to run a as many tests as neeeded if we do the tests in without a break of more than two minutes between the tests. If we come back after a few mintues to run the tests, the connection gets closed.
-
We had Wireshark trace to see the issue, and Wireshark shows a connection to the client without any initialization from Fuse and I guess that closes the connection.
Server : port = 10.200.20.51:3044
Message = "060152696TESTING HQONE 060-15-26961985/04/13"
<bean id="string-encoder" class="org.jboss.netty.handler.codec.string.StringEncoder"></bean>
<to uri="netty:tcp://<host>:<port>?encoders=#string-encoder&sync=true&disconnectOnNoReply=true" />
Environment
- Red Hat JBoss Fuse
- 6.x
- camel-netty component
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.