From 500c5eea565147206f927ca4a005a3923702afdd Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 18 Aug 2014 21:38:03 +0900 Subject: [PATCH] nghttpx: Rename Http2Upstream::add_downstream as add_pending_downstream --- src/shrpx_http2_upstream.cc | 4 ++-- src/shrpx_http2_upstream.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shrpx_http2_upstream.cc b/src/shrpx_http2_upstream.cc index ad55adc5..6b788fd7 100644 --- a/src/shrpx_http2_upstream.cc +++ b/src/shrpx_http2_upstream.cc @@ -276,7 +276,7 @@ int on_begin_headers_callback(nghttp2_session *session, frame->hd.stream_id, 0); - upstream->add_downstream(downstream); + upstream->add_pending_downstream(downstream); downstream->init_upstream_timer(); downstream->reset_upstream_rtimer(); downstream->init_response_body_buf(); @@ -1169,7 +1169,7 @@ bufferevent_event_cb Http2Upstream::get_downstream_eventcb() return downstream_eventcb; } -void Http2Upstream::add_downstream(Downstream *downstream) +void Http2Upstream::add_pending_downstream(Downstream *downstream) { downstream_queue_.add_pending(downstream); } diff --git a/src/shrpx_http2_upstream.h b/src/shrpx_http2_upstream.h index 23214494..f9130e1d 100644 --- a/src/shrpx_http2_upstream.h +++ b/src/shrpx_http2_upstream.h @@ -54,7 +54,7 @@ public: virtual bufferevent_data_cb get_downstream_readcb(); virtual bufferevent_data_cb get_downstream_writecb(); virtual bufferevent_event_cb get_downstream_eventcb(); - void add_downstream(Downstream *downstream); + void add_pending_downstream(Downstream *downstream); void remove_downstream(Downstream *downstream); Downstream* find_downstream(int32_t stream_id);