nghttpx: Rename PROTO_SPDY with PROTO_HTTP2 for backend protocol name
This commit is contained in:
parent
ba3db66cec
commit
0fcd14300a
|
@ -293,7 +293,7 @@ int event_loop()
|
|||
|
||||
if(get_config()->num_worker > 1) {
|
||||
listener_handler->create_worker_thread(get_config()->num_worker);
|
||||
} else if(get_config()->downstream_proto == PROTO_SPDY) {
|
||||
} else if(get_config()->downstream_proto == PROTO_HTTP2) {
|
||||
listener_handler->create_http2_session();
|
||||
}
|
||||
|
||||
|
@ -1061,7 +1061,7 @@ int main(int argc, char **argv)
|
|||
}
|
||||
|
||||
if(get_config()->client_mode || get_config()->http2_bridge) {
|
||||
mod_config()->downstream_proto = PROTO_SPDY;
|
||||
mod_config()->downstream_proto = PROTO_HTTP2;
|
||||
} else {
|
||||
mod_config()->downstream_proto = PROTO_HTTP;
|
||||
}
|
||||
|
|
|
@ -104,7 +104,7 @@ union sockaddr_union {
|
|||
};
|
||||
|
||||
enum shrpx_proto {
|
||||
PROTO_SPDY,
|
||||
PROTO_HTTP2,
|
||||
PROTO_HTTP
|
||||
};
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ void Worker::run()
|
|||
return;
|
||||
}
|
||||
std::unique_ptr<Http2Session> http2session;
|
||||
if(get_config()->downstream_proto == PROTO_SPDY) {
|
||||
if(get_config()->downstream_proto == PROTO_HTTP2) {
|
||||
http2session = util::make_unique<Http2Session>(evbase.get(), cl_ssl_ctx_);
|
||||
if(http2session->init_notification() == -1) {
|
||||
DIE();
|
||||
|
|
Loading…
Reference in New Issue