Mercurial > stress-tester
changeset 1249:f9aa26c8f638
HttpFlowHandlerDataDecoder bugfix
author | Devel 2 |
---|---|
date | Wed, 01 Jul 2020 13:09:39 +0200 |
parents | d8b7a6da8618 |
children | 0aaec16bfed7 |
files | stress-tester/src/main/java/com/passus/st/client/http/HttpFlowHandlerDataDecoder.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/client/http/HttpFlowHandlerDataDecoder.java Wed Jul 01 12:24:12 2020 +0200 +++ b/stress-tester/src/main/java/com/passus/st/client/http/HttpFlowHandlerDataDecoder.java Wed Jul 01 13:09:39 2020 +0200 @@ -86,7 +86,7 @@ synchronized (handler.metric) { handler.metric.addResponseStatusCode(resp.getStatus().getCode()); handler.metric.addResponseSize(decoder.getHeaderSize() + decoder.getContentSize()); - if (lastRequest != null) { + if (lastRequest != null && lastRequest.containsTag(TAG_TIME_START)) { handler.metric.addResponseTime(now - (long) lastRequest.getTag(TAG_TIME_START)); } }