File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments