Bug 53838 - Pressing "Stop" does not interrupt the TCP sampler
Pressing "Stop" does not interrupt the TCP sampler
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: Main
2.7
PC All
: P2 minor (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
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