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

reqwest 0.10.1 #1

Merged
merged 1 commit into from
Feb 10, 2020
Merged

reqwest 0.10.1 #1

merged 1 commit into from
Feb 10, 2020

Conversation

webern
Copy link
Owner

@webern webern commented Feb 10, 2020

In another project we experienced failures using http 1.1 over TLS. This was tracked to hyper where we believe we had a slightly different manifestation of this issue hyper 1439 (in our case a closed connection was being used leading to a "Failed to fetch" error).

The hyper was fixed in v0.13 which is obtained by bumping reqwest from 0.9 to 0.10.

In reqwest 0.10 the non-async api is relegated to the reqwest::blocking module. This is breaking for customers of tough since pub type HttpTransport = reqwest::Client; becomes pub type HttpTransport = reqwest::blocking::Client;. However the code changes required to accommodate this are as simple as adding ::blocking:: to the path wherever the compiler complains.

This change was tested in an update program that uses tough and was found to fix the issue.

tough/CHANGELOG.md Outdated Show resolved Hide resolved
tough/CHANGELOG.md Outdated Show resolved Hide resolved
tuftool/Cargo.toml Outdated Show resolved Hide resolved
tough/Cargo.toml Outdated Show resolved Hide resolved
@webern webern force-pushed the webern/reqwest-10 branch 2 times, most recently from 9dfd477 to cebc00f Compare February 10, 2020 17:22
@webern webern merged commit 7c03d04 into develop Feb 10, 2020
@webern webern deleted the webern/reqwest-10 branch December 24, 2020 00:53
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.

1 participant