alexcrichton / curl-rust

Rust bindings to libcurl
MIT License
1.02k stars 235 forks source link

Enable HAVE_GETPEERNAME when building `curl` #304

Closed alexcrichton closed 5 years ago

alexcrichton commented 5 years ago

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 commented 5 years ago

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.