From 10631550f1f9788bdfd64d2434237a1448ab0626 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 15 Apr 2021 19:23:21 +0200 Subject: Automatically retry failed downloads 3 times Enable the Acquire::Retries option by default, set to 3. This will help with slightly unreliable networking; future work is needed for adding backoff and SRV/IP rotation. LP: #1876035 Gbp-Dch: full --- test/integration/test-proxy-connect | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test') diff --git a/test/integration/test-proxy-connect b/test/integration/test-proxy-connect index 17927c9db..579bab387 100755 --- a/test/integration/test-proxy-connect +++ b/test/integration/test-proxy-connect @@ -19,4 +19,13 @@ echo "Acquire::http::Proxy \"http://localhost:${APTHTTPPORT}\";" > rootdir/etc/a aptget update >/dev/null 2>&1 testsuccessequal "CONNECT example.example:443 HTTP/1.1\r +Host: example.example:443\r +-- +CONNECT example.example:443 HTTP/1.1\r +Host: example.example:443\r +-- +CONNECT example.example:443 HTTP/1.1\r +Host: example.example:443\r +-- +CONNECT example.example:443 HTTP/1.1\r Host: example.example:443\r" grep -A1 "^CONNECT" aptarchive/webserver.log -- cgit v1.2.3-70-g09d2