Commit 4eda9027 authored by Antoine Pitrou's avatar Antoine Pitrou

Issue #14300: Under Windows, sockets created using socket.dup() now allow overlapped I/O.

Patch by sbt.
parent fb33b9a0
...@@ -37,6 +37,9 @@ Core and Builtins ...@@ -37,6 +37,9 @@ Core and Builtins
Library Library
------- -------
- Issue #14300: Under Windows, sockets created using socket.dup() now allow
overlapped I/O. Patch by sbt.
- Issue #13872: socket.detach() now marks the socket closed (as mirrored - Issue #13872: socket.detach() now marks the socket closed (as mirrored
in the socket repr()). Patch by Matt Joiner. in the socket repr()). Patch by Matt Joiner.
......
...@@ -381,7 +381,7 @@ dup_socket(SOCKET handle) ...@@ -381,7 +381,7 @@ dup_socket(SOCKET handle)
return INVALID_SOCKET; return INVALID_SOCKET;
return WSASocket(FROM_PROTOCOL_INFO, FROM_PROTOCOL_INFO, return WSASocket(FROM_PROTOCOL_INFO, FROM_PROTOCOL_INFO,
FROM_PROTOCOL_INFO, &info, 0, 0); FROM_PROTOCOL_INFO, &info, 0, WSA_FLAG_OVERLAPPED);
} }
#define SOCKETCLOSE closesocket #define SOCKETCLOSE closesocket
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment