From 32d7883c475046ab0f40f22a06a0d43eadd12815 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 23 Aug 2018 10:55:42 +0900 Subject: [PATCH] nghttpx: Downstream::request_buf_full: take into account blocked_request_buf_ --- src/shrpx_downstream.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shrpx_downstream.cc b/src/shrpx_downstream.cc index 59c9f5f7..c7400e88 100644 --- a/src/shrpx_downstream.cc +++ b/src/shrpx_downstream.cc @@ -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;