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

bump reqwest version to 0.10.1 #55

Merged
merged 1 commit into from
Feb 10, 2020
Merged

Conversation

webern
Copy link
Contributor

@webern webern commented Feb 10, 2020

Issue #, if available:

N/A

Description of changes:

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.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@iliana iliana requested a review from zmrow February 10, 2020 17:43
Copy link
Contributor

@zmrow zmrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

🏋

@iliana iliana merged commit a1973af into awslabs: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.

3 participants