I has written a junit case that create a tcp keepalive connection and send a simple string.
But when I run the junit case in jmeter, I found that the tcp connection object will be disposed and closed after the test case was executed.
Although I have tried to resolve it, I can‘t find any usable information.
Maybe the problem can be stated as "How to test the tcp keepalive connection by using Jmeter JUnit Sampler instead of Jmeter tcp sampler?"