[issue9753] test_socket.testDup, testFromFd fail on Windows
Daniel Stutzbach
report at bugs.python.org
Fri Sep 3 13:25:24 CEST 2010
Daniel Stutzbach <daniel at stutzbachenterprises.com> added the comment:
On Windows, socket.dup is implemented using DuplicateHandle. The documentation for DuplicateHandle reads:
You should not use DuplicateHandle to duplicate handles to the following objects:
* I/O completion ports. No error is returned, but the duplicate handle cannot be used.
* Sockets. No error is returned, but the duplicate handle may not be recognized by Winsock at the target process. Also, using DuplicateHandle interferes with internal reference counting on the underlying object. To duplicate a socket handle, use the WSADuplicateSocket function.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9753>
_______________________________________
More information about the Python-bugs-list
mailing list