Re: http_accel and forwarding loops

From: Henrik Nordstrom <>
Date: Sun, 10 Jan 1999 02:46:13 +0100

Jens-Uwe Mager wrote:

> If a proxy request for comes in, squid now contacts itself
> instead of directly and the error occurs. Is there any way
> to configure squid to redirect the proxy request to
> directly?

As is your proxy, you have to use a redirector to redirect
proxied request to the real server. Otherwise Squid sends the request to
itself and then loop detection kicks in and rejects the request.

The difference from Squid 1.x is the loop detection. Previous versions
whould happily accelerate requests from itself (which then got
accelerated), and thereby easily creating devestating infinite
forwarding loops in some configurations. With the loop detection code it
is now considerably harder to configure Squid to do infinite forwarding
loops (it is possible but left as an excersise to the interested
reader... hint: never_direct is required).

Sample redirector:

#!/usr/bin/perl -p
BEGIN {$|=1;}

Henrik Nordstrom
Spare time Squid hacker
Received on Sat Jan 09 1999 - 18:19:45 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:43:56 MST