diff --git a/src/HttpServer.cc b/src/HttpServer.cc index e58e800f..92ff6663 100644 --- a/src/HttpServer.cc +++ b/src/HttpServer.cc @@ -229,7 +229,7 @@ public: make_unique(this, fd, ssl, get_next_session_id()); handler->setup_bev(); if (!ssl) { - if (handler->on_connect() != 0) { + if (handler->connection_made() != 0) { return; } } @@ -520,7 +520,7 @@ int Http2Handler::tls_handshake() { read_ = &Http2Handler::read_tls; write_ = &Http2Handler::write_tls; - if (on_connect() != 0) { + if (connection_made() != 0) { return -1; } @@ -629,7 +629,7 @@ int Http2Handler::on_read() { return read_(*this); } int Http2Handler::on_write() { return write_(*this); } -int Http2Handler::on_connect() { +int Http2Handler::connection_made() { int r; r = nghttp2_session_server_new2(&session_, sessions_->get_callbacks(), this, diff --git a/src/HttpServer.h b/src/HttpServer.h index 8ca52775..e0d2df49 100644 --- a/src/HttpServer.h +++ b/src/HttpServer.h @@ -102,7 +102,7 @@ public: int setup_bev(); int on_read(); int on_write(); - int on_connect(); + int connection_made(); int verify_npn_result(); int submit_file_response(const std::string &status, Stream *stream,