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

Enable HAVE_GETPEERNAME when building curl #304

Merged
merged 1 commit into from
Oct 1, 2019

Conversation

alexcrichton
Copy link
Owner

Looks like this enables a few optimizations internally, such as reusing
connections! Let's be sure to enable this for our platforms, which
should all have this, so we can get those performance optimizations with
HTTP.

Looks like this enables a few optimizations internally, such as reusing
connections! Let's be sure to enable this for our platforms, which
should all have this, so we can get those performance optimizations with
HTTP.
@alexcrichton
Copy link
Owner Author

For some background on this, I've been debugging why a curl upgrade in Cargo recently caused issues where connections to crates.io were not being reused. Turns out this block wasn't run, never setting ip_addr_str, causing this to always be run.

@alexcrichton alexcrichton merged commit 30de1e5 into master Oct 1, 2019
@alexcrichton alexcrichton deleted the enable-getpeername branch October 1, 2019 21:34
alexcrichton added a commit to alexcrichton/cargo that referenced this pull request Oct 1, 2019
Pulls in alexcrichton/curl-rust#304 which fixes a bug from the last curl
update in rust-lang#7308. This bug was not introduced by the Cargo PR itself but
rather by updating the `curl` submodule in the `curl-sys` crate. Without
this bugfix all downloads of a crate will make a new connection to
crates.io, which drastically increases download time since setting up a
connection takes so long.
bors added a commit to rust-lang/cargo that referenced this pull request Oct 2, 2019
Update `curl-sys` dependency requirement

Pulls in alexcrichton/curl-rust#304 which fixes a bug from the last curl
update in #7308. This bug was not introduced by the Cargo PR itself but
rather by updating the `curl` submodule in the `curl-sys` crate. Without
this bugfix all downloads of a crate will make a new connection to
crates.io, which drastically increases download time since setting up a
connection takes so long.
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