trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject [trafficserver] branch 7.1.x updated: Fix tunnel crash
Date Fri, 03 Apr 2020 16:51:09 GMT
This is an automated email from the ASF dual-hosted git repository.

bcall pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/7.1.x by this push:
     new 41424fa  Fix tunnel crash
41424fa is described below

commit 41424fa82007edea5a61c96029cc1d9af5daf693
Author: Susan Hinrichs <shinrich@verizonmedia.com>
AuthorDate: Thu Mar 26 21:56:00 2020 +0000

    Fix tunnel crash
    
    (cherry picked from commit ba868d88a3f2ce4c58e48e2b7b5878a45c2922c4)
---
 proxy/http/HttpTunnel.cc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/proxy/http/HttpTunnel.cc b/proxy/http/HttpTunnel.cc
index 561c55e..66ebe26 100644
--- a/proxy/http/HttpTunnel.cc
+++ b/proxy/http/HttpTunnel.cc
@@ -991,6 +991,11 @@ HttpTunnel::producer_run(HttpTunnelProducer *p)
   for (c = p->consumer_list.head; c; c = c->link.next) {
     int64_t c_write = consumer_n;
 
+    // Don't bother to set up the consumer if it is dead
+    if (!c->alive) {
+      continue;
+    }
+
     if (!p->alive) {
       // Adjust the amount of chunked data to write if the only data was in the initial read
       // The amount to write in some cases is dependent on the type of the consumer, so this


Mime
View raw message