]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Auto merge of #66835 - AviKozokin:master, r=alexcrichton
authorbors <bors@rust-lang.org>
Fri, 6 Dec 2019 04:30:51 +0000 (04:30 +0000)
committerbors <bors@rust-lang.org>
Fri, 6 Dec 2019 04:30:51 +0000 (04:30 +0000)
commit7b482cdf7ce55e05ee8392e1ade70966e3189cfd
tree66805c0df7473a40d093342cde3b12a5bcc9b097
parent234c9f21d9930e4ae804d00b191d0780959cfcbe
parentfa8b54901f1236cbcd48205856e8766496664105
Auto merge of #66835 - AviKozokin:master, r=alexcrichton

std:win: avoid WSA_FLAG_NO_INHERIT flag and don't use SetHandleInformation on UWP

This flag is not supported on Windows 7 before SP1, and on windows server 2008 SP2. This breaks Socket creation & duplication.
This was fixed in a previous PR. cc #26658

This PR: cc #60260 reuses this flag to support UWP, and makes an attempt to handle the potential error.
This version still fails to create a socket, as the error returned by WSA on this case is WSAEINVAL (invalid argument). and not WSAEPROTOTYPE.

MSDN page for WSASocketW (that states the platform support for WSA_FLAG_NO_HANDLE_INHERIT): https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsasocketw

CC #26543
CC #26518