Bug 53838

Summary: Pressing "Stop" does not interrupt the TCP sampler
Product: JMeter - Now in Github Reporter: sanjiely <sanjiely>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: minor    
Priority: P2    
Version: 2.7   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description sanjiely 2012-09-07 08:01:54 UTC
In a TCP sampler, if I set its "timeouts" of response as blank. That is to say, if there is no response returned from peer server, this TCP sampler will be waiting on it for ever.
But even I press "Stop" or "Shutdown" button from JMeter's menu, the blocked TCP sampler can't exit smoothly. I have to kill the process of JMeter or quit JMeter.
It's not so convenient. I hope the "Stop" button can work to stop the test task even if it's blocking on socket.
Thanks.
Comment 1 Sebb 2012-09-09 14:51:20 UTC
Only Stop is supposed to interrupt active samplers, however TCPSampler does not currently implement the Interruptible interface.

Fixed in SVN:

URL: http://svn.apache.org/viewvc?rev=1382510&view=rev
Log:
Pressing "Stop" does not interrupt the TCP sampler
Bugzilla Id: 53838

Modified:
    jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPSampler.java
    jmeter/trunk/xdocs/changes.xml
Comment 2 The ASF infrastructure team 2022-09-24 20:37:51 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2916