Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 76035:5be4d8fc9c44
Issue #14300: Under Windows, sockets created using socket.dup() now allow overlapped I/O.
Patch by sbt.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Sun, 01 Apr 2012 01:14:39 +0200 |
| parents | e46013f92013 |
| children | 51b4bddd0e92 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Sun Apr 01 01:00:55 2012 +0200 +++ b/Modules/socketmodule.c Sun Apr 01 01:14:39 2012 +0200 @@ -381,7 +381,7 @@ 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
