Commit 0d4120ce authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Apply same fix from a225bb29 to spdy upstream

parent 20de4327
...@@ -254,6 +254,18 @@ void SpdyUpstream::maintain_downstream_concurrency() ...@@ -254,6 +254,18 @@ void SpdyUpstream::maintain_downstream_concurrency()
{ {
while(get_config()->max_downstream_connections > while(get_config()->max_downstream_connections >
downstream_queue_.num_active()) { downstream_queue_.num_active()) {
if(downstream_queue_.pending_empty()) {
break;
}
{
auto downstream = downstream_queue_.pending_top();
if(downstream->get_request_state() != Downstream::HEADER_COMPLETE &&
downstream->get_request_state() != Downstream::MSG_COMPLETE) {
break;
}
}
auto downstream = downstream_queue_.pop_pending(); auto downstream = downstream_queue_.pop_pending();
if(!downstream) { if(!downstream) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment