nghttpx: Apply same fix from a225bb2
to spdy upstream
This commit is contained in:
parent
20de432725
commit
0d4120ce2c
|
@ -254,6 +254,18 @@ void SpdyUpstream::maintain_downstream_concurrency()
|
|||
{
|
||||
while(get_config()->max_downstream_connections >
|
||||
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();
|
||||
|
||||
if(!downstream) {
|
||||
|
|
Loading…
Reference in New Issue