about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorIvan Nejgebauer <inejge@gmail.com>2016-07-07 12:03:31 +0200
committerIvan Nejgebauer <inejge@gmail.com>2016-07-07 12:03:31 +0200
commit0314d179aa07905cc3bd4ec3206be28ff11696f9 (patch)
tree769698b477e568bf3c040a2e999a7f1b7af1f77e /src/libstd/sys/unix/stack_overflow.rs
parent4114b68eba6914b46202a2108f34f7653e393851 (diff)
downloadrust-0314d179aa07905cc3bd4ec3206be28ff11696f9.tar.gz
rust-0314d179aa07905cc3bd4ec3206be28ff11696f9.zip
Use hints with getaddrinfo() in std::net::lokup_host()
When resolving a hostname, pass a hints struct where ai_socktype is
set to SOCK_STREAM in order to eliminate repeated results for each
protocol family.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions