Commit 28b209e2 authored by Helmut Grohne's avatar Helmut Grohne Committed by Holger Levsen

use cdn-fastly directly when proxying through squid

When you configure deb.d.o with apt, apt performs a SRV lookup and
connects to the right backend. When you use a proxy, the proxy is in
charge for performing those SRV lookups. squid doesn't do that. So it
connects to deb.d.o and receives a 302 redirect to cdn-fastly. Except
when it doesn't and receives a timeout instead. This happened a lot

The whole business of redirecting each request is neither efficient nor
fault tolerant. So we change the default mirror to the default SRV
target when connecting through a squid. Putting the redirects out of the
loop is both faster and avoids the timeouts.
parent 0d754ea1
......@@ -112,7 +112,7 @@ else
if [ -z "$MIRROR" ]; then
case $HOSTNAME in
export MIRROR= ;;
export MIRROR= ;;
export MIRROR= ;;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment