[issue14300] dup_socket() on Windows should use WSA_FLAG_OVERLAPPED

Kristján Valur Jónsson report at bugs.python.org
Sun Apr 1 21:57:01 CEST 2012


Kristján Valur Jónsson <kristjan at ccpgames.com> added the comment:

I already included this fix in my "socket share" patch, see issue 14310.

I think this was a bug that should be checked in to all relevant branches.  The reason is this text from msdn documentation for WsaDuplicateSocket:
" Both the source process and the destination process should pass the same flags to their respective WSASocket function calls. If the source process uses the socket function to create the socket, the destination process _must_ [underline KVJ] pass the WSA_FLAG_OVERLAPPED flag to its WSASocket function call."

See http://msdn.microsoft.com/en-us/library/windows/desktop/ms741565(v=vs.85).aspx

----------
nosy: +krisvale

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14300>
_______________________________________


More information about the Python-bugs-list mailing list