Skip to content

Commit eeab3ef

Browse files
committed
Remove unrelated changes
1 parent dad1ab7 commit eeab3ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

proxy/http/HttpTunnel.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ HttpTunnel::consumer_reenable(HttpTunnelConsumer *c)
12341234
{
12351235
HttpTunnelProducer *p = c->producer;
12361236

1237-
if (p && p->alive) {
1237+
if (p && p->alive && p->read_buffer->write_avail() > 0) {
12381238
// Only do flow control if enabled and the producer is an external
12391239
// source. Otherwise disable by making the backlog zero. Because
12401240
// the backlog short cuts quit when the value is equal (or

proxy/http2/Http2Stream.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ Http2Stream::initiating_close()
444444
if (write_vio.cont) {
445445
SCOPED_MUTEX_LOCK(lock, write_vio.mutex, this_ethread());
446446
// Are we done?
447-
if (write_vio.nbytes == write_vio.ndone && write_vio.nbytes > 0) {
447+
if (write_vio.nbytes == write_vio.ndone) {
448448
Http2StreamDebug("handle write from destroy (event=%d)", VC_EVENT_WRITE_COMPLETE);
449449
write_event = send_tracked_event(write_event, VC_EVENT_WRITE_COMPLETE, &write_vio);
450450
} else {

0 commit comments

Comments
 (0)