0
votes

I'm using TCP sampler to send a text type message. The thing is, I'm getting the response that I wanted but the JMeter's test run doesn't stop its-self after getting the response. Each time I've to click on the STOP button and then I get the response with a 500 error saying that "the server is unable to read from the server".

I've tried the following things:

  1. selecting the "close connection check box".
  2. Set end of line byte value to 10, 13 and 1200, 1300 in both JMeter GUI and JMeter properties (although I'm not sure how this works).
  3. Adding \0 and \r\n at the end of my TCP request message.

Non of the above things work. If anyone has a better solution for this kindly guide. I've seen some solutions saying "use JSR223 sampler to send requests" but I don't know its code tried writing the code too but failed. Anyone please?