From 9a54a260de1375ca7a819e01fc7ced75c1f6f8e9 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sun, 1 Apr 2012 01:14:39 +0200 Subject: Issue #14300: Under Windows, sockets created using socket.dup() now allow overlapped I/O. Patch by sbt. --- Misc/NEWS | 3 +++ Modules/socketmodule.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Misc/NEWS b/Misc/NEWS index 3423856..a893f6b 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -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. diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index d741d2c..59a2f28 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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 -- cgit v0.12