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
recently.

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
jenkins|jenkins-test-vm|profitbricks-build*)
export MIRROR=http://deb.debian.org/debian ;;
export MIRROR=http://cdn-fastly.deb.debian.org/debian ;;
bbx15|cb3*|cbxi4*|wbq0|odxu4*|odu3*|odc*|ff*|ff4*|opi2*|jt?1*|p64*)
export MIRROR=http://deb.debian.org/debian ;;
codethink*)
......
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