From e23296f0ddea2a30283ab4034f88771cfac649ae Mon Sep 17 00:00:00 2001 From: Masaori Koshiba Date: Tue, 9 Mar 2021 10:08:29 +0900 Subject: [PATCH] Rollback LAZY_BUF_ALLOC remove in HttpTunnel --- proxy/http/HttpTunnel.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/http/HttpTunnel.cc b/proxy/http/HttpTunnel.cc index 6192516af17..53596f315ff 100644 --- a/proxy/http/HttpTunnel.cc +++ b/proxy/http/HttpTunnel.cc @@ -1234,7 +1234,7 @@ HttpTunnel::consumer_reenable(HttpTunnelConsumer *c) { HttpTunnelProducer *p = c->producer; - if (p && p->alive && p->read_buffer->write_avail() > 0) { + if (p && p->alive) { // Only do flow control if enabled and the producer is an external // source. Otherwise disable by making the backlog zero. Because // the backlog short cuts quit when the value is equal (or @@ -1370,7 +1370,7 @@ HttpTunnel::consumer_handler(int event, HttpTunnelConsumer *c) // the SM since the reenabling has the side effect // updating the buffer state for the VConnection // that is being reenabled - if (p->alive && p->read_vio && p->read_buffer->write_avail() > 0) { + if (p->alive && p->read_vio) { if (p->is_throttled()) { this->consumer_reenable(c); } else {