Julia Kreger
0b31c4cb75
Retry on checksum failures
...
HTTP is a fun protocol.
Size is basically optional. And clients implicitly trust the server
and socket has transferred all the bytes. Which *really* means you
should always checksum.
But... previously we didn't checksum as part of retrying.
So if anything happened with python-requests, or lower level
library code or the system itself causing bytes to be lost off the
buffer, creating an incomplete transfer situation, then we wouldn't
know until the checksum.
So now, we checksum and re-trigger the download if there is a
failure of the checksum.
This involved a minor shift in the download logic, and resulted in
a needful minor fix to an image checksum test as it would loop for
90 seconds as well.
Closes-Bug: 2038934
Change-Id: I543a60555a2621b49dd7b6564bd0654a46db2e9a
(cherry picked from commit cb61a8d6c052f4401d482ca45b43bc53935a6b28)
2023-10-11 13:33:56 +00:00
..
2015-12-16 16:04:29 -08:00
2023-08-24 08:10:22 -07:00
2018-06-28 22:20:15 +00:00
2021-05-01 10:36:20 +02:00
2021-05-21 16:33:11 +02:00
2022-02-03 14:49:36 +01:00
2021-05-01 10:36:58 +02:00
2021-07-13 11:36:31 +02:00
2020-11-17 18:00:16 +01:00
2016-09-21 10:14:26 -04:00
2017-02-13 13:16:43 +00:00
2020-11-11 17:25:59 +00:00
2018-01-16 12:29:33 +01:00
2016-06-20 18:47:26 -04:00
2022-03-15 19:00:25 +10:00
2019-06-12 13:00:21 +00:00
2020-09-14 22:38:18 +00:00
2016-06-28 17:02:11 +01:00
2019-05-29 10:55:44 +02:00
2021-12-08 17:47:19 +01:00
2017-08-14 13:30:20 -07:00
2020-09-02 16:07:42 -07:00
2016-06-24 14:50:58 +02:00
2016-03-24 13:32:42 +00:00
2019-03-18 15:11:27 +01:00
2023-08-31 06:22:22 -07:00
2021-12-06 09:09:35 +01:00
2016-02-22 22:46:28 +00:00
2016-02-15 10:19:17 +09:00
2020-11-20 10:17:00 -05:00
2015-12-16 16:34:21 -08:00
2021-02-18 22:51:34 +10:00
2018-06-28 18:38:10 +00:00
2016-03-21 14:21:12 +00:00
2020-08-06 15:14:31 +02:00
2016-03-18 08:21:01 +00:00
2020-06-23 20:27:41 +00:00
2020-03-12 10:35:17 -07:00
2020-12-10 06:42:48 -08:00
2020-12-17 14:17:31 +00:00
2020-07-29 10:10:18 +02:00
2018-09-24 19:10:38 -07:00
2018-06-18 19:43:40 +00:00
2020-09-11 17:46:52 +02:00
2020-02-07 17:06:44 +00:00
2023-06-06 08:34:55 -07:00
2019-05-29 10:55:44 +02:00
2016-12-07 16:51:30 +00:00
2021-08-06 13:14:45 +02:00
2023-03-31 14:28:32 +02:00
2016-05-26 17:05:11 +02:00
2020-03-23 10:41:04 -07:00
2022-07-01 23:03:55 +00:00
2019-03-18 15:11:27 +01:00
2019-01-29 13:02:48 +01:00
2020-02-07 17:06:44 +00:00
2021-04-01 11:16:20 -07:00
2020-09-22 16:59:47 +00:00
2021-06-21 12:10:54 +02:00
2018-11-19 18:57:23 +01:00
2021-03-29 13:22:43 -07:00
2023-10-11 13:33:56 +00:00
2020-08-20 13:45:47 -07:00
2020-12-10 16:22:13 +01:00
2021-06-18 17:19:30 +02:00
2017-08-14 13:30:20 -07:00
2017-06-28 10:23:45 -07:00
2023-01-25 15:17:06 +01:00
2019-10-14 15:28:08 +02:00
2022-06-17 16:19:58 +02:00
2021-05-18 12:59:28 +02:00
2021-06-02 11:19:39 +02:00
2022-04-29 16:56:53 +02:00
2021-10-20 15:11:16 +02:00
2021-04-13 19:05:04 +02:00
2017-01-20 12:55:12 -08:00
2015-12-16 16:34:21 -08:00
2021-11-04 09:45:25 -07:00
2017-08-14 13:30:20 -07:00
2016-06-01 16:12:32 +02:00
2022-09-02 14:51:42 +00:00
2021-11-01 06:59:26 -07:00
2019-02-05 19:53:25 -08:00
2022-02-22 15:53:54 +01:00
2016-05-26 14:52:15 +01:00
2023-05-04 09:26:10 +02:00
2019-05-29 10:55:44 +02:00
2016-03-22 16:59:38 +00:00
2016-05-24 10:36:45 +02:00
2019-11-22 15:36:28 +05:30
2022-05-04 15:06:02 +02:00
2016-04-08 15:55:06 -04:00
2022-08-11 09:30:00 +00:00
2022-09-05 20:43:51 +00:00
2019-03-18 15:11:27 +01:00
2019-03-18 15:11:27 +01:00
2020-07-27 17:57:37 +02:00
2016-07-28 11:14:11 +01:00
2020-03-29 07:45:25 -07:00
2023-09-22 13:10:50 +00:00
2020-08-04 23:32:37 +08:00
2020-06-23 20:27:49 +00:00
2017-02-13 18:11:52 +00:00
2019-10-15 16:35:17 +00:00
2020-08-25 19:34:48 +00:00
2023-01-11 14:00:07 +00:00
2023-05-03 21:31:23 +02:00
2022-06-21 09:45:03 +01:00
2021-07-16 10:28:31 +02:00
2021-10-08 08:35:29 +02:00
2020-09-28 10:35:12 +02:00
2020-12-14 06:36:18 -08:00
2019-02-04 09:55:08 +01:00
2020-09-09 15:19:38 -07:00
2018-10-19 14:22:05 +01:00
2020-12-19 19:03:16 +00:00
2020-07-22 11:16:13 -07:00
2017-08-14 13:30:20 -07:00
2021-02-27 17:24:16 -05:00
2020-01-29 13:41:25 -06:00
2016-11-22 12:23:27 +00:00
2017-10-17 16:18:39 +02:00
2020-05-25 22:18:17 +03:00
2019-11-01 06:57:58 -07:00
2021-02-17 10:56:31 +05:30
2020-09-23 18:24:26 +08:00
2020-02-07 17:06:44 +00:00
2023-06-06 15:35:16 +00:00
2021-05-04 16:44:37 +00:00
2021-10-05 11:42:49 +02:00
2019-09-04 15:24:56 +02:00
2021-12-07 10:38:58 +01:00
2021-11-09 13:03:14 +01:00
2022-08-25 08:16:16 -07:00
2018-01-16 12:29:33 +01:00
2021-01-27 03:32:23 +00:00
2016-02-08 16:33:14 +09:00
2020-08-04 20:43:02 -07:00
2020-10-22 22:28:07 +00:00
2023-04-17 09:14:24 -07:00
2020-03-03 00:14:33 -06:00
2020-09-29 17:08:40 +02:00
2019-09-04 15:24:56 +02:00
2019-05-29 10:55:44 +02:00
2015-12-16 16:34:21 -08:00
2019-09-24 09:55:10 +02:00
2022-03-10 07:04:01 -08:00
2017-02-13 18:11:52 +00:00
2021-06-04 10:03:55 +12:00
2019-02-25 14:28:09 +01:00
2020-04-24 10:34:40 +02:00
2015-12-16 16:34:21 -08:00
2021-02-16 16:56:52 +01:00
2020-07-03 10:32:26 +02:00
2017-10-17 16:18:39 +02:00
2016-04-05 20:03:33 +02:00
2016-05-10 18:12:46 +02:00
2020-08-19 17:25:24 +02:00
2020-01-03 17:29:05 +01:00
2020-01-22 11:15:38 +01:00
2017-01-11 11:00:56 +00:00
2016-02-26 12:34:20 +01:00
2017-09-11 18:43:24 +02:00
2017-09-19 14:05:13 +02:00
2017-02-13 18:11:52 +00:00
2017-02-13 18:11:52 +00:00
2020-12-07 18:59:08 +01:00
2016-07-21 09:54:51 -04:00
2020-03-31 08:13:13 -07:00
2020-03-19 15:16:00 +01:00
2020-07-02 12:18:53 +02:00
2021-05-26 13:04:46 -07:00
2017-02-13 18:11:52 +00:00
2017-02-13 18:11:52 +00:00
2018-01-16 12:29:33 +01:00
2016-08-17 16:35:07 +02:00
2023-04-26 19:33:51 +00:00
2023-08-07 12:57:34 -07:00
2021-10-28 18:32:40 +02:00
2015-12-16 16:34:21 -08:00
2022-04-29 14:24:19 +02:00
2019-09-24 09:55:10 +02:00
2018-01-30 15:54:10 +00:00
2021-04-29 14:41:11 -04:00
2019-07-08 07:43:40 -07:00
2020-10-30 08:28:54 -07:00
2020-03-29 14:47:41 +00:00
2020-11-20 17:07:00 +01:00
2019-05-29 16:58:24 +02:00
2020-04-08 15:40:02 +02:00
2022-02-03 14:49:36 +01:00
2022-05-18 20:26:39 -03:00
2022-06-14 19:06:53 +02:00
2017-08-14 13:30:20 -07:00
2016-02-02 10:32:39 +00:00
2023-05-03 12:20:35 +02:00
2016-08-05 12:02:41 +02:00
2016-03-18 15:20:48 +00:00
2017-02-13 18:11:52 +00:00
2019-08-28 19:46:37 +02:00
2021-05-10 12:43:44 +02:00
2017-11-21 10:11:21 +00:00
2021-04-07 17:16:27 +02:00
2022-07-07 16:38:22 +02:00
2019-12-02 12:11:58 +01:00
2021-03-25 12:45:28 +01:00
2019-08-07 16:10:51 +02:00
2017-01-09 14:10:47 +01:00
2017-02-13 18:11:52 +00:00
2019-03-18 15:11:27 +01:00
2021-03-09 07:05:27 -05:00
2019-12-19 11:19:48 -08:00
2019-09-25 11:53:11 +02:00
2020-06-21 16:44:00 +08:00
2016-06-03 12:17:55 -04:00
2020-10-09 11:24:12 +02:00
2020-12-14 14:37:14 +00:00
2022-07-19 13:24:03 -07:00
2020-07-20 14:24:06 -07:00
2022-10-10 19:31:47 +03:00
2021-06-02 18:59:10 +02:00
2021-12-08 15:56:05 +00:00
2019-11-27 20:30:28 +00:00
2020-07-02 17:30:33 +02:00
2020-03-17 13:03:24 +01:00
2020-10-06 14:00:57 +02:00
2019-09-24 09:55:10 +02:00
2021-02-11 17:45:57 +01:00
2017-02-13 18:11:52 +00:00
2016-03-21 12:57:50 +00:00
2016-11-09 16:34:44 +00:00
2020-03-16 05:57:54 -07:00
2022-02-11 11:02:52 +09:00
2018-01-31 10:24:44 -08:00
2020-08-31 14:37:38 +00:00
2018-11-24 11:20:34 +08:00
2016-07-11 14:30:35 +01:00
2020-03-11 13:45:12 -07:00
2017-02-13 18:11:52 +00:00
2019-11-01 13:58:55 +00:00
2016-05-24 10:39:52 +02:00
2020-04-06 18:03:25 +02:00
2019-09-04 15:24:56 +02:00
2019-09-04 15:24:56 +02:00
2019-09-16 11:27:27 +02:00
2020-02-07 17:06:44 +00:00
2019-06-04 12:33:40 +02:00
2021-04-16 14:40:28 +02:00
2020-11-03 13:03:34 +03:00
2017-12-07 12:16:06 +00:00
2015-12-16 16:34:21 -08:00
2018-10-17 11:16:04 +02:00
2021-03-19 12:08:43 +01:00
2021-06-10 11:23:14 -07:00
2018-07-24 09:22:40 +08:00
2015-12-16 16:34:21 -08:00
2015-12-16 16:34:21 -08:00
2016-06-22 18:26:04 +01:00
2018-07-20 16:07:16 +00:00
2017-02-09 14:45:39 +00:00
2019-08-09 13:28:25 +02:00
2020-06-23 13:25:09 -07:00
2019-06-13 17:39:05 -07:00
2019-03-18 15:11:27 +01:00
2018-05-15 14:33:36 +07:00
2016-09-19 19:02:55 +03:00
2016-03-02 10:54:51 +00:00
2021-06-02 18:59:10 +02:00
2020-04-15 18:38:15 +02:00
2017-02-13 18:11:52 +00:00
2021-02-10 18:08:58 +01:00
2023-08-22 16:47:28 -07:00
2021-03-02 11:38:57 +00:00
2015-12-16 16:34:21 -08:00
2015-12-16 16:34:21 -08:00
2020-11-23 16:04:45 +01:00
2016-06-14 12:36:52 +00:00
2017-10-16 15:39:25 +02:00
2020-10-07 12:06:42 +02:00
2020-07-09 18:28:20 +02:00