You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2021/01/27 22:50:28 UTC

[trafficserver] branch 9.0.x updated: Change squid log code for self looping (#7443)

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

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


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 157882c  Change squid log code for self looping (#7443)
157882c is described below

commit 157882cca7d3edee082b07a264bd91edacbeafc5
Author: Bryan Call <bc...@apache.org>
AuthorDate: Wed Jan 27 14:49:57 2021 -0800

    Change squid log code for self looping (#7443)
    
    (cherry picked from commit 57a1854100bc515c7ae4c2fe772cb55c936ab2bf)
---
 proxy/http/HttpTransact.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index 87de57a..e4db42e 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -6678,6 +6678,7 @@ HttpTransact::will_this_request_self_loop(State *s)
         TxnDebug("http_transact", "unknown's ip and port same as local ip and port - bailing");
         break;
       }
+      SET_VIA_STRING(VIA_ERROR_TYPE, VIA_ERROR_LOOP_DETECTED);
       build_error_response(s, HTTP_STATUS_BAD_REQUEST, "Cycle Detected", "request#cycle_detected");
       return true;
     }