Skip to content

Commit 30de1e5

Browse files
authored
Enable HAVE_GETPEERNAME when building curl (#304)
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.
1 parent 4ec50bd commit 30de1e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

curl-sys/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ fn main() {
187187
.file("curl/lib/warnless.c")
188188
.file("curl/lib/wildcard.c")
189189
.define("HAVE_GETADDRINFO", None)
190+
.define("HAVE_GETPEERNAME", None)
190191
.warnings(false);
191192

192193
if cfg!(feature = "http2") {

0 commit comments

Comments
 (0)