Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry network requests on transient errors #212

Merged
merged 3 commits into from
Mar 23, 2020
Merged

Retry network requests on transient errors #212

merged 3 commits into from
Mar 23, 2020

Conversation

mwleeds
Copy link
Contributor

@mwleeds mwleeds commented Mar 23, 2020

Instead of defaulting to G_IO_ERROR_FAILED, use more specific codes when
we can. These were copied from libostree.
Currently if flatpak is installing an extra data app such as Spotify and
the server with the .deb file fails to complete the request, the
installation fails with a message like "Connection terminated
unexpectedly". This commit makes flatpak instead try 5 times to download
a given URI if the error returned seems like a transient one (so not,
for example, 404 not found). This is analogous to what was done in
libostree in commit 938055392fd455027a69398c441b992ae521aa87, and we use
some code from there.
@mwleeds mwleeds merged commit 901ce68 into master Mar 23, 2020
@mwleeds mwleeds deleted the T29495 branch March 23, 2020 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant