h2load: Fix wrong req_stat updates

This commit is contained in:
Tatsuhiro Tsujikawa 2017-01-26 00:26:35 +09:00
parent 7e6eb7e02a
commit b72c5f104e
1 changed files with 2 additions and 1 deletions

View File

@ -544,7 +544,8 @@ int Client::submit_request() {
} }
void Client::process_timedout_streams() { void Client::process_timedout_streams() {
for (auto &req_stat : worker->stats.req_stats) { for (auto &p : streams) {
auto &req_stat = p.second.req_stat;
if (!req_stat.completed) { if (!req_stat.completed) {
req_stat.stream_close_time = std::chrono::steady_clock::now(); req_stat.stream_close_time = std::chrono::steady_clock::now();
} }