Skip to content

Commit 9ed916c

Browse files
authored
Rollback LAZY_BUF_ALLOC remove in HttpTunnel (#7583)
1 parent 739994f commit 9ed916c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

proxy/http/HttpTunnel.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ HttpTunnel::consumer_reenable(HttpTunnelConsumer *c)
12361236
{
12371237
HttpTunnelProducer *p = c->producer;
12381238

1239-
if (p && p->alive && p->read_buffer->write_avail() > 0) {
1239+
if (p && p->alive) {
12401240
// Only do flow control if enabled and the producer is an external
12411241
// source. Otherwise disable by making the backlog zero. Because
12421242
// the backlog short cuts quit when the value is equal (or
@@ -1376,7 +1376,7 @@ HttpTunnel::consumer_handler(int event, HttpTunnelConsumer *c)
13761376
// the SM since the reenabling has the side effect
13771377
// updating the buffer state for the VConnection
13781378
// that is being reenabled
1379-
if (p->alive && p->read_vio && p->read_buffer->write_avail() > 0) {
1379+
if (p->alive && p->read_vio) {
13801380
if (p->is_throttled()) {
13811381
this->consumer_reenable(c);
13821382
} else {

0 commit comments

Comments
 (0)