Skip to content

Commit

Permalink
Enable HAVE_GETPEERNAME when building curl (#304)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexcrichton authored Oct 1, 2019
1 parent 4ec50bd commit 30de1e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions curl-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ fn main() {
.file("curl/lib/warnless.c")
.file("curl/lib/wildcard.c")
.define("HAVE_GETADDRINFO", None)
.define("HAVE_GETPEERNAME", None)
.warnings(false);

if cfg!(feature = "http2") {
Expand Down

0 comments on commit 30de1e5

Please sign in to comment.