Bug 53838 - Pressing "Stop" does not interrupt the TCP sampler
Summary: Pressing "Stop" does not interrupt the TCP sampler
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.7
Hardware: PC All
: P2 minor (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-07 08:01 UTC by sanjiely
Modified: 2012-09-09 14:51 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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