h2load: Stream error should be counted toward `errored`
This commit is contained in:
parent
f29ccc9c20
commit
3641b123f3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue