h2load: Avoid copy of h1 request
This commit is contained in:
parent
bd041bcbb0
commit
ba9e96b829
|
@ -152,7 +152,7 @@ void Http1Session::on_connect() { client_->signal_write(); }
|
||||||
|
|
||||||
int Http1Session::submit_request(RequestStat *req_stat) {
|
int Http1Session::submit_request(RequestStat *req_stat) {
|
||||||
auto config = client_->worker->config;
|
auto config = client_->worker->config;
|
||||||
auto req = config->h1reqs[client_->reqidx];
|
const auto &req = config->h1reqs[client_->reqidx];
|
||||||
client_->reqidx++;
|
client_->reqidx++;
|
||||||
|
|
||||||
if (client_->reqidx == config->h1reqs.size()) {
|
if (client_->reqidx == config->h1reqs.size()) {
|
||||||
|
|
Loading…
Reference in New Issue