nghttpx: Rename Http2Session::on_connect as connection_made
This commit is contained in:
parent
e9cdb9c896
commit
8bf440b89c
|
@ -1212,7 +1212,7 @@ nghttp2_session_callbacks *create_http2_downstream_callbacks() {
|
||||||
return callbacks;
|
return callbacks;
|
||||||
}
|
}
|
||||||
|
|
||||||
int Http2Session::on_connect() {
|
int Http2Session::connection_made() {
|
||||||
int rv;
|
int rv;
|
||||||
|
|
||||||
state_ = Http2Session::CONNECTED;
|
state_ = Http2Session::CONNECTED;
|
||||||
|
@ -1561,7 +1561,7 @@ int Http2Session::connected() {
|
||||||
return do_write();
|
return do_write();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (on_connect() != 0) {
|
if (connection_made() != 0) {
|
||||||
state_ = CONNECT_FAILING;
|
state_ = CONNECT_FAILING;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -1657,7 +1657,7 @@ int Http2Session::tls_handshake() {
|
||||||
read_ = &Http2Session::read_tls;
|
read_ = &Http2Session::read_tls;
|
||||||
write_ = &Http2Session::write_tls;
|
write_ = &Http2Session::write_tls;
|
||||||
|
|
||||||
if (on_connect() != 0) {
|
if (connection_made() != 0) {
|
||||||
state_ = CONNECT_FAILING;
|
state_ = CONNECT_FAILING;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,7 +89,7 @@ public:
|
||||||
|
|
||||||
int resume_data(Http2DownstreamConnection *dconn);
|
int resume_data(Http2DownstreamConnection *dconn);
|
||||||
|
|
||||||
int on_connect();
|
int connection_made();
|
||||||
|
|
||||||
int do_read();
|
int do_read();
|
||||||
int do_write();
|
int do_write();
|
||||||
|
|
Loading…
Reference in New Issue