mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 02:28:53 +08:00
nghttpx: Apply same fix from a225bb2 to spdy upstream
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user