Philip Withnall
d6b10c26ef
utils-http: Add transfer speed timeout for libcurl HTTP downloads
...
There was already a timeout set using `CURLOPT_CONNECTTIMEOUT`, but that
only affects the initial connection. Once a HTTP connection is
established, the timeout is ineffective.
That means that once a HTTP connection is established, there is no bound
on the length of time a download can take. Sometimes, downloads drop to
very low speeds (for Networking Reasons) and we need a way to give up on
a download if that happens.
So, set a low speed limit of 10KB/s for 60s. If a curl download goes
more slowly than this, it will be considered timed out, and the
`CURLE_OPERATION_TIMEDOUT` code path will be taken.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org >
Fixes: https://github.com/flatpak/flatpak/issues/5519
2023-09-15 12:36:25 +01:00
..
2019-10-03 10:42:04 +02:00
2022-08-22 19:48:10 -07:00
2019-12-19 10:33:21 +01:00
2022-08-22 19:48:10 -07:00
2022-08-22 19:48:10 -07:00
2021-02-12 15:58:09 +01:00
2023-08-24 12:17:53 +02:00
2023-09-04 13:25:32 +01:00
2019-09-19 16:53:11 +00:00
2019-09-19 16:53:11 +00:00
2021-01-12 09:55:23 +01:00
2023-09-08 19:03:24 +01:00
2023-09-08 19:03:24 +01:00
2023-07-03 20:07:57 +02:00
2023-09-04 13:25:32 +01:00
2022-09-07 09:21:58 +02:00
2022-09-07 09:21:58 +02:00
2019-02-25 18:12:30 +00:00
2021-02-09 09:36:59 +01:00
2023-07-03 20:07:57 +02:00
2023-07-03 20:07:57 +02:00
2023-05-17 11:35:44 +01:00
2023-05-17 11:35:44 +01:00
2019-10-02 14:57:11 +02:00
2023-03-30 14:54:18 +02:00
2021-06-14 15:30:59 +01:00
2020-11-05 10:43:10 +01:00
2023-02-04 12:30:15 -06:00
2021-02-12 15:58:09 +01:00
2021-04-16 09:13:18 +02:00
2023-09-04 13:25:32 +01:00
2021-02-12 15:58:09 +01:00
2023-05-17 11:35:44 +01:00
2020-06-05 09:35:30 +02:00
2022-08-22 19:48:10 -07:00
2018-08-09 12:49:36 +00:00
2022-08-22 19:48:10 -07:00
2023-07-03 20:07:57 +02:00
2023-07-03 20:07:57 +02:00
2023-09-04 13:25:32 +01:00
2019-10-03 10:42:04 +02:00
2022-12-15 16:45:35 +00:00
2018-04-26 07:41:17 +00:00
2019-12-01 14:04:59 -05:00
2020-03-27 17:23:13 +01:00
2022-12-15 16:45:35 +00:00
2021-04-26 10:30:14 +02:00
2023-09-04 13:25:32 +01:00
2023-07-03 20:07:57 +02:00
2023-07-03 20:07:57 +02:00
2022-08-22 19:48:10 -07:00
2021-02-12 15:58:09 +01:00
2020-03-23 17:58:04 +01:00
2022-08-22 19:48:10 -07:00
2021-02-12 15:58:09 +01:00
2020-03-25 08:52:28 +01:00
2020-11-05 10:43:10 +01:00
2022-12-15 16:45:35 +00:00
2021-02-12 15:58:09 +01:00
2022-08-22 19:48:10 -07:00
2021-02-12 15:58:09 +01:00
2023-05-15 19:54:51 +01:00
2023-05-15 19:54:51 +01:00
2023-05-15 19:54:51 +01:00
2023-09-04 13:25:32 +01:00
2023-08-24 12:17:53 +02:00
2023-05-15 19:54:51 +01:00
2023-05-15 19:54:51 +01:00
2023-08-24 12:17:53 +02:00
2023-08-24 12:17:53 +02:00
2023-08-24 12:17:53 +02:00
2023-08-24 12:17:53 +02:00
2023-05-15 19:54:51 +01:00
2023-09-04 13:25:32 +01:00
2023-09-08 19:03:24 +01:00
2021-10-08 12:53:20 +02:00
2021-05-19 09:49:30 +02:00
2023-07-03 20:07:57 +02:00
2023-03-30 14:54:18 +02:00
2022-09-06 13:20:05 +02:00
2022-09-07 09:21:19 +02:00
2020-12-09 08:34:19 +01:00
2022-08-22 19:48:10 -07:00
2022-06-16 13:49:45 +02:00
2023-09-15 12:36:25 +01:00
2023-07-03 20:19:00 +02:00
2023-09-04 13:25:32 +01:00
2019-12-02 07:45:51 -05:00
2020-06-05 09:35:30 +02:00
2020-06-05 09:35:30 +02:00
2018-05-24 11:59:52 +00:00
2018-10-08 08:36:23 +00:00
2023-09-10 13:58:53 +01:00
2023-09-10 13:58:53 +01:00
2022-04-11 10:32:34 +02:00
2019-04-08 12:50:42 +00:00