196197198199200201202203204205206
try { clientSocket.close(); } catch (Exception e) { log.error("", e); } sampler.threadFinished(); // Needed for HTTPSampler2 } } /** * Write output to the output stream, then flush and close the stream.
242243244245246247248249250251252
try { clientSocket.close(); } catch (Exception e) { log.error("", e); } sampler.threadFinished(); // Needed for HTTPSampler2 } } private SampleResult generateErrorResult(SampleResult result, Exception e) { if (result == null) {
281282283284285286287288289290291
clientSocket.close(); } catch (Exception e) { log.error(port + "Failed to close client socket", e); } if(sampler != null) { sampler.threadFinished(); // Needed for HTTPSampler2 } } } /**