Skip to content

Commit 157882c

Browse files
bryancallzwoop
authored andcommitted
Change squid log code for self looping (#7443)
(cherry picked from commit 57a1854)
1 parent ca074a7 commit 157882c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

proxy/http/HttpTransact.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6678,6 +6678,7 @@ HttpTransact::will_this_request_self_loop(State *s)
66786678
TxnDebug("http_transact", "unknown's ip and port same as local ip and port - bailing");
66796679
break;
66806680
}
6681+
SET_VIA_STRING(VIA_ERROR_TYPE, VIA_ERROR_LOOP_DETECTED);
66816682
build_error_response(s, HTTP_STATUS_BAD_REQUEST, "Cycle Detected", "request#cycle_detected");
66826683
return true;
66836684
}

0 commit comments

Comments
 (0)