nghttpx: Fix stream handling of upgraded request

This commit is contained in:
Tatsuhiro Tsujikawa 2014-08-18 21:36:55 +09:00
parent 2fb675f13c
commit 83a39f5b49
1 changed files with 2 additions and 1 deletions

View File

@ -138,7 +138,8 @@ int Http2Upstream::upgrade_upstream(HttpsUpstream *http)
pre_upstream_.reset(http); pre_upstream_.reset(http);
http->pop_downstream(); http->pop_downstream();
downstream->reset_upstream(this); downstream->reset_upstream(this);
add_downstream(downstream); downstream->set_stream_id(1);
downstream_queue_.add_active(downstream);
downstream->init_upstream_timer(); downstream->init_upstream_timer();
downstream->reset_upstream_rtimer(); downstream->reset_upstream_rtimer();
downstream->init_response_body_buf(); downstream->init_response_body_buf();