From 83a39f5b49e1121bc8b75ab79a60a692b61779fd Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 18 Aug 2014 21:36:55 +0900 Subject: [PATCH] nghttpx: Fix stream handling of upgraded request --- src/shrpx_http2_upstream.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shrpx_http2_upstream.cc b/src/shrpx_http2_upstream.cc index fcd15108..ad55adc5 100644 --- a/src/shrpx_http2_upstream.cc +++ b/src/shrpx_http2_upstream.cc @@ -138,7 +138,8 @@ int Http2Upstream::upgrade_upstream(HttpsUpstream *http) pre_upstream_.reset(http); http->pop_downstream(); downstream->reset_upstream(this); - add_downstream(downstream); + downstream->set_stream_id(1); + downstream_queue_.add_active(downstream); downstream->init_upstream_timer(); downstream->reset_upstream_rtimer(); downstream->init_response_body_buf();