[issue14310] Socket duplication for windows

Kristján Valur Jónsson report at bugs.python.org
Fri Apr 6 16:15:23 CEST 2012


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

The binary copy:
This is a winsock2 feature.  There is no difference in layout between 32 bits and 64 bits.  I also don't think there is a difference between SDK versions.  However, strangely, there is a difference between unicode and non-unicode builds.  But since we are using this in python3, which always uses the same unicode setting, this shouldn't be an issue.

I'll take your other comments into account and produce a new patch.
Similar to socket.dup(), the socket shared is assumed to be in "blockin" mode (this his how its timeout is initialized).  We can test for that too.

----------

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


More information about the Python-bugs-list mailing list