h2load: Stream error should be counted toward `errored`

This commit is contained in:
Tatsuhiro Tsujikawa 2015-10-29 21:15:22 +09:00
parent f29ccc9c20
commit 3641b123f3
1 changed files with 7 additions and 2 deletions

View File

@ -560,11 +560,16 @@ 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) {
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);
if (req_done == req_todo) {