This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/9.1.x by this push:
     new be81936  Clean up producer more regularly (#7386)
be81936 is described below

commit be819360d6df11175cc059151b2371b034887c38
Author: Susan Hinrichs <[email protected]>
AuthorDate: Thu May 27 12:23:57 2021 -0500

    Clean up producer more regularly (#7386)
    
    (cherry picked from commit ad4340dd972dd4b9a3f771c8d19dd729915721e9)
---
 proxy/http/HttpTunnel.cc | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/proxy/http/HttpTunnel.cc b/proxy/http/HttpTunnel.cc
index 49a2530..d01ec08 100644
--- a/proxy/http/HttpTunnel.cc
+++ b/proxy/http/HttpTunnel.cc
@@ -1343,16 +1343,7 @@ HttpTunnel::consumer_handler(int event, 
HttpTunnelConsumer *c)
         c->producer->read_success = true;
         // Go ahead and clean up the producer side
         if (p->alive) {
-          p->alive = false;
-          if (p->read_vio) {
-            p->bytes_read = p->read_vio->ndone;
-          } else {
-            p->bytes_read = 0;
-          }
-          if (p->vc != HTTP_TUNNEL_STATIC_PRODUCER) {
-            // Clear any outstanding reads
-            p->vc->do_io_read(nullptr, 0, nullptr);
-          }
+          producer_handler(VC_EVENT_READ_COMPLETE, p);
         }
       } else if (c->vc_type == HT_HTTP_SERVER) {
         c->producer->handler_state = HTTP_SM_POST_UA_FAIL;

Reply via email to