Daniel Stutzbach <dan...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue9753>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to