ostree-repo-pull: add options to configure retry behavior
authorJoseph Marrero <jmarrero@redhat.com>
Mon, 3 Apr 2023 23:04:57 +0000 (19:04 -0400)
committerJoseph Marrero <jmarrero@redhat.com>
Wed, 18 Oct 2023 01:00:37 +0000 (21:00 -0400)
commit4fb6e6f5a9e349dc8082db447bc919c2f64b5275
treec0bd11284ffb79aae5c104853dc6595ca49970f7
parentbefd84436cab510efe5f09acbe96dea49eb0fdcb
ostree-repo-pull: add options to configure retry behavior

This introduces the "retry-all-network-errors" option which
is enabled by default. This is a behavior change as now
ostree will retry on requests that fail except when
they fail with NOT_FOUND. It also introduces the options
"low-speed-limit-bytes" and "low-speed-time-seconds these"
map to CURL options only at the moment. Which have defaults
set following librepo:
https://github.com/rpm-software-management/librepo/blob/7c9af219abd49f8961542b7622fc82cfdaa572e3/librepo/handle.h#L90
https://github.com/rpm-software-management/librepo/blob/7c9af219abd49f8961542b7622fc82cfdaa572e3/librepo/handle.h#L96
Currently these changes only apply when using libcurl.
Finally this change adds a final option that affects all
backends to control the max amount of connections of the
fetcher "max-outstanding-fetcher-requests".
man/ostree-pull.xml
src/libostree/ostree-fetcher-curl.c
src/libostree/ostree-fetcher-soup.c
src/libostree/ostree-fetcher-soup3.c
src/libostree/ostree-fetcher.h
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo-pull-private.h
src/libostree/ostree-repo-pull.c
src/ostree/ot-builtin-pull.c