about summary refs log tree commit diff
path: root/src/libstd/sys/unix/ext.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-08 15:43:37 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-14 11:08:26 -0700
commit433f0e8d1fbd25693172f71e5a577bb9625b45b0 (patch)
tree49e1f1b5d040f6e52697334dedf582c8b055a85a /src/libstd/sys/unix/ext.rs
parent926f38e588bb99aff1902fa94ab82b1db89cbbce (diff)
downloadrust-433f0e8d1fbd25693172f71e5a577bb9625b45b0.tar.gz
rust-433f0e8d1fbd25693172f71e5a577bb9625b45b0.zip
std: Set overlap/noinherit flags on windows sockets
This commit modifies the socket creation functions on windows to always specify
the `WSA_FLAG_OVERLAPPED` and `WSA_FLAG_NO_HANDLE_INHERIT` flags by default. The
overlapped flag enables IOCP APIs on Windows to be used with the socket at no
cost, enabling better interoperation with external libraries. The no handle
inherit flag mirrors the upcoming change to Unix to set CLOEXEC by default for
all handles.

Closes #24206
Diffstat (limited to 'src/libstd/sys/unix/ext.rs')
0 files changed, 0 insertions, 0 deletions