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

Update hyper to 1.x #1291

Merged
merged 6 commits into from
Jun 9, 2024
Merged

Update hyper to 1.x #1291

merged 6 commits into from
Jun 9, 2024

Conversation

GeorgeHahn
Copy link
Contributor

This PR updates hyper to version 1.x. I've tested it on windows with default options. The most notable change is in the discovery server, where the code has changed significantly to accommodate changes in hyper. The intent of the code remains the same, and I confirmed that it functions correctly on my devices.

hyper-proxy is swapped out in favor of a maintained fork, hyper-proxy2. I've seen mentions of some alternatives; this appears to be the most stable option.

hyper-rustls is updated to version 0.26.0 to get hyper 1.x support, but is held short of the latest version, 0.27.2, due to build environment changes required for 0.27.0.

Docs I referenced for this change:

@GeorgeHahn GeorgeHahn marked this pull request as ready for review June 7, 2024 03:30
hyper's `server` feature is not always enabled. The `hyper::Error::is_parse_too_large` function isn't included when `server` isn't enabled.

Fortunately, it doesn't matter to us: `Error:is_parse` matches `parse_too_large` errors, so removing this check does not change behavior whatsoever.
@roderickvd
Copy link
Member

Thanks a lot for this! I went through it and it looks good. If someone could also verify on some *nix?

@tstenner
Copy link
Contributor

tstenner commented Jun 9, 2024

Built it locally on linux and played back two songs successfully.

@roderickvd
Copy link
Member

Great, let's merge!

@roderickvd roderickvd merged commit 1504430 into librespot-org:dev Jun 9, 2024
9 checks passed
@yubiuser yubiuser mentioned this pull request Jun 10, 2024
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.

3 participants