diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2021-04-15 19:23:21 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2021-04-15 19:36:47 +0200 |
commit | 10631550f1f9788bdfd64d2434237a1448ab0626 (patch) | |
tree | beab71c20e3add30f7743b51d11bbdbf8711a1af /test | |
parent | 9d95c64be8dd5a74efb7bcd134f6425c837c22ca (diff) |
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
Diffstat (limited to 'test')
-rwxr-xr-x | test/integration/test-proxy-connect | 9 |
1 files changed, 9 insertions, 0 deletions
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 |