You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2022/08/08 23:20:24 UTC

[trafficserver] 01/01: Ignore POST request case from a check for background fill

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

masaori pushed a commit to branch asf-master-0809-5
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 25acf973308da10bd6fbaa18456742fa98879269
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Wed Apr 20 15:15:33 2022 +0900

    Ignore POST request case from a check for background fill
---
 proxy/http/HttpTunnel.h | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/proxy/http/HttpTunnel.h b/proxy/http/HttpTunnel.h
index e5e2e58a5..0bd1be845 100644
--- a/proxy/http/HttpTunnel.h
+++ b/proxy/http/HttpTunnel.h
@@ -546,12 +546,14 @@ HttpTunnel::has_consumer_besides_client() const
       continue;
     }
 
-    if (consumer.vc_type == HT_HTTP_CLIENT) {
-      res = false;
+    switch (consumer.vc_type) {
+    case HT_HTTP_CLIENT:
       continue;
-    } else {
-      res = true;
-      break;
+    case HT_HTTP_SERVER:
+      // ignore uploading data to servers
+      continue;
+    default:
+      return true;
     }
   }