nghttpx: Downstream::request_buf_full: take into account blocked_request_buf_

This commit is contained in:
Tatsuhiro Tsujikawa 2018-08-23 10:55:42 +09:00
parent 9b24e19763
commit 32d7883c47
1 changed files with 2 additions and 1 deletions

View File

@ -586,7 +586,8 @@ bool Downstream::request_buf_full() {
if (dconn_) {
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;