h2load: Avoid copy of h1 request

This commit is contained in:
Tatsuhiro Tsujikawa 2015-11-26 22:04:31 +09:00
parent bd041bcbb0
commit ba9e96b829
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ void Http1Session::on_connect() { client_->signal_write(); }
int Http1Session::submit_request(RequestStat *req_stat) {
auto config = client_->worker->config;
auto req = config->h1reqs[client_->reqidx];
const auto &req = config->h1reqs[client_->reqidx];
client_->reqidx++;
if (client_->reqidx == config->h1reqs.size()) {