From b72c5f104ea5a7fd28d03db52fa56c3a1b6d4cc9 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 26 Jan 2017 00:26:35 +0900 Subject: [PATCH] h2load: Fix wrong req_stat updates --- src/h2load.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/h2load.cc b/src/h2load.cc index aa6f5de4..6fdd0b9b 100644 --- a/src/h2load.cc +++ b/src/h2load.cc @@ -544,7 +544,8 @@ int Client::submit_request() { } 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) { req_stat.stream_close_time = std::chrono::steady_clock::now(); }