diff --git a/src/h2load.cc b/src/h2load.cc index 07a2888c..145b0946 100644 --- a/src/h2load.cc +++ b/src/h2load.cc @@ -406,7 +406,7 @@ void Client::on_stream_close(int32_t stream_id, bool success, int Client::noop() { return 0; } -int Client::on_connect() { +int Client::connection_made() { if (ssl) { report_tls_info(); @@ -576,7 +576,7 @@ int Client::connected() { readfn = &Client::read_clear; writefn = &Client::write_clear; - if (on_connect() != 0) { + if (connection_made() != 0) { return -1; } @@ -611,7 +611,7 @@ int Client::tls_handshake() { readfn = &Client::read_tls; writefn = &Client::write_tls; - if (on_connect() != 0) { + if (connection_made() != 0) { return -1; } diff --git a/src/h2load.h b/src/h2load.h index 949e669f..a3c5dd1b 100644 --- a/src/h2load.h +++ b/src/h2load.h @@ -207,9 +207,10 @@ struct Client { int on_read(const uint8_t *data, size_t len); int on_write(); - int on_connect(); int noop(); + int connection_made(); + void on_request(int32_t stream_id); void on_header(int32_t stream_id, const uint8_t *name, size_t namelen, const uint8_t *value, size_t valuelen);