mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 18:48:54 +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 >
|
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user