When exception occurs during sample in TCP sampler, such samples won't appear in results and will be hidden. This may affect test consistency. Eg if we use BinaryTCPClientImpl class and passing uneven hex data (000), an exception will be thrown by BinaryTCPClientImpl but not caught by TCPSampler. I suggest to add handling such exceptions by TCPSampler, keep logging and generate failed sample.
Created attachment 24994 [details] Here's proposed changes to source code to fix the issue By the way I want to check if diff file format is correct and I may send larger patches in this format.
Thanks, that patch applied perfectly: URL: http://svn.apache.org/viewvc?rev=910559&view=rev Log: Bug 48747 - TCP Sampler swallows exceptions Modified: jakarta/jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPSampler.java jakarta/jmeter/trunk/xdocs/changes.xml
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2342