nghttpx: Downstream::request_buf_full: take into account blocked_request_buf_
This commit is contained in:
parent
9b24e19763
commit
32d7883c47
|
@ -586,7 +586,8 @@ bool Downstream::request_buf_full() {
|
||||||
|
|
||||||
if (dconn_) {
|
if (dconn_) {
|
||||||
auto &downstreamconf = *worker->get_downstream_config();
|
auto &downstreamconf = *worker->get_downstream_config();
|
||||||
return request_buf_.rleft() >= downstreamconf.request_buffer_size;
|
return blocked_request_buf_.rleft() + request_buf_.rleft() >=
|
||||||
|
downstreamconf.request_buffer_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue