nghttpd: Rename Http2Handler::on_connect as connection_made
This commit is contained in:
parent
8bf440b89c
commit
a2486daee1
|
@ -229,7 +229,7 @@ public:
|
||||||
make_unique<Http2Handler>(this, fd, ssl, get_next_session_id());
|
make_unique<Http2Handler>(this, fd, ssl, get_next_session_id());
|
||||||
handler->setup_bev();
|
handler->setup_bev();
|
||||||
if (!ssl) {
|
if (!ssl) {
|
||||||
if (handler->on_connect() != 0) {
|
if (handler->connection_made() != 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -520,7 +520,7 @@ int Http2Handler::tls_handshake() {
|
||||||
read_ = &Http2Handler::read_tls;
|
read_ = &Http2Handler::read_tls;
|
||||||
write_ = &Http2Handler::write_tls;
|
write_ = &Http2Handler::write_tls;
|
||||||
|
|
||||||
if (on_connect() != 0) {
|
if (connection_made() != 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -629,7 +629,7 @@ int Http2Handler::on_read() { return read_(*this); }
|
||||||
|
|
||||||
int Http2Handler::on_write() { return write_(*this); }
|
int Http2Handler::on_write() { return write_(*this); }
|
||||||
|
|
||||||
int Http2Handler::on_connect() {
|
int Http2Handler::connection_made() {
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
r = nghttp2_session_server_new2(&session_, sessions_->get_callbacks(), this,
|
r = nghttp2_session_server_new2(&session_, sessions_->get_callbacks(), this,
|
||||||
|
|
|
@ -102,7 +102,7 @@ public:
|
||||||
int setup_bev();
|
int setup_bev();
|
||||||
int on_read();
|
int on_read();
|
||||||
int on_write();
|
int on_write();
|
||||||
int on_connect();
|
int connection_made();
|
||||||
int verify_npn_result();
|
int verify_npn_result();
|
||||||
|
|
||||||
int submit_file_response(const std::string &status, Stream *stream,
|
int submit_file_response(const std::string &status, Stream *stream,
|
||||||
|
|
Loading…
Reference in New Issue