summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-03-31 23:14:39 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-03-31 23:14:39 (GMT)
commit9a54a260de1375ca7a819e01fc7ced75c1f6f8e9 (patch)
tree2f030b2e9a095aef24e1756997df69541c8424a5 /Modules
parent8315f967647f4610776fef6dda830ce72db042c0 (diff)
downloadcpython-9a54a260de1375ca7a819e01fc7ced75c1f6f8e9.zip
cpython-9a54a260de1375ca7a819e01fc7ced75c1f6f8e9.tar.gz
cpython-9a54a260de1375ca7a819e01fc7ced75c1f6f8e9.tar.bz2
Issue #14300: Under Windows, sockets created using socket.dup() now allow overlapped I/O.
Patch by sbt.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
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