jmeter tcpsampler eol Settings:
Background:
After running tcpsampler if an error is reported: org.apache.jmeter.protocol.tcp.sampler.ReadException:
Need to set eol
to
mark an end tag for inputstream
The int value of the tag type is -128-127, and the calculation method is a decimal value of one byte. For
example, if the tag bit is 7e in hexadecimal, binary is 0111, 1110, and the corresponding decimal is 126.
so: intercept the last
byte according to the return value of the server, note that if it is hexadecimal, it should be two characters bits) should be 7e converted to decimal to 126
Then set it to 126 at eol ReadException: Exception elimination
ps:
https://testerhome.com/topics/2006
Judgment conditions in the source code:
while ((x = is.read(buffer)) > -1) {
w.write(buffer, 0, x);
if (useEolByte && (buffer[x - 1] == eolByte)) {
break;
}
}