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:13 UTC
[trafficserver] branch master 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 master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 57a1854 Change squid log code for self looping (#7443)
57a1854 is described below
commit 57a1854100bc515c7ae4c2fe772cb55c936ab2bf
Author: Bryan Call <bc...@apache.org>
AuthorDate: Wed Jan 27 14:49:57 2021 -0800
Change squid log code for self looping (#7443)
---
proxy/http/HttpTransact.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index e486004..29927b7 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -6542,6 +6542,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;
}