[issue14310] Socket duplication for windows

Kristján Valur Jónsson report at bugs.python.org
Mon Mar 19 20:18:36 CET 2012


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

Good point.  The docs don't actually say, except that the docs show a pretty elaborate process dance, where the source process only closes its side of the socket once the target process has called WSASocket().

If duplication happened early, then there would have to be a way to "unduplicate" it in the source process if, say, IPC somehow failed.  There is currently no api to undo the effects of WSADuplicateSocket().

It's easy enough to test, of course.  I´ll do some test using my unittest.

----------

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


More information about the Python-bugs-list mailing list