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

feat: add urllib3 v2 as network backend #292

Merged
merged 43 commits into from
Nov 29, 2024

Conversation

R1kaB3rN
Copy link
Member

@R1kaB3rN R1kaB3rN commented Nov 29, 2024

Closes #264.

Adds urllib3 version 2 as the network backend for umu-launcher to ensure more reliable installation and updates of the runtime for users. All network requests will be subject to a strict 5 second timeout to ensure users will not hang, and requests that return a 301 or similar will be auto redirected for any endpoint. When the connection suddenly drops, umu-launcher will retry the connection a total of 2 times and save the downloaded file in $XDG_CACHE_HOME/umu where it will be picked up for resumption on the next launch.

urllib2 will be a vendored dependency as, understandably, most Linux distributions do not package v2. For maintainers, python3-pip or similar will be an additional build dependency to install it. However, once HTTPX makes its async dependencies optional, we'll consider opting to use that instead and dropping urllib3. Additionally, truststore will be an optional dependency to allow the usage of the system's native CA bundle instead of certifi's for network requests.

- Adds urllib3 as dependency and truststore as an optional dependency
- Automatically includes urllib3 v2 in all targets
- We're targeting latest Debian which is currently Bookworm and it defaults to 3.11
@R1kaB3rN R1kaB3rN marked this pull request as ready for review November 29, 2024 05:16
@R1kaB3rN R1kaB3rN merged commit d006222 into Open-Wine-Components:main Nov 29, 2024
11 checks passed
@R1kaB3rN R1kaB3rN deleted the urllib3-backend branch November 29, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

umu-run hangs for long time waiting to connect to repo.steampowered.com
1 participant