Commit 2868370f authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

h2load: http1: Send header + body in one packet

parent 9f6c947a
......@@ -176,14 +176,14 @@ int Http1Session::submit_request() {
client_->record_request_time(req_stat);
client_->wb.append(req);
// TODO try read some data here
if (config->data_fd == -1 || config->data_length == 0) {
// increment for next request
stream_req_counter_ += 2;
return 0;
}
return 0;
return on_write();
}
int Http1Session::on_read(const uint8_t *data, size_t len) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment