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

Patch by sbt.
This commit is contained in:
Antoine Pitrou 2012-04-01 01:14:39 +02:00
parent 8315f96764
commit 9a54a260de
2 changed files with 4 additions and 1 deletions

View File

@ -37,6 +37,9 @@ Core and Builtins
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
in the socket repr()). Patch by Matt Joiner.

View File

@ -381,7 +381,7 @@ dup_socket(SOCKET handle)
return INVALID_SOCKET;
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
#else