From 3641b123f31d1d7990c709b94dc80ca9c228f3e1 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 29 Oct 2015 21:15:22 +0900 Subject: [PATCH] h2load: Stream error should be counted toward `errored` --- src/h2load.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/h2load.cc b/src/h2load.cc index 882c3c36..c9a36026 100644 --- a/src/h2load.cc +++ b/src/h2load.cc @@ -560,10 +560,15 @@ void Client::on_stream_close(int32_t stream_id, bool success, } ++worker->stats.req_done; ++req_done; - if (success && streams[stream_id].status_success == 1) { - ++worker->stats.req_status_success; + if (success) { + if (streams[stream_id].status_success == 1) { + ++worker->stats.req_status_success; + } else { + ++worker->stats.req_failed; + } } else { ++worker->stats.req_failed; + ++worker->stats.req_error; } report_progress(); streams.erase(stream_id);