[issue4892] Sending Connection-objects over multiprocessing connections fails

sbt report at bugs.python.org
Sat Apr 7 21:08:38 CEST 2012


sbt <shibturn at gmail.com> added the comment:

> There is a simpler way to do this on Windows.  The sending process 
> duplicates the handle, and the receiving process duplicates that second 
> handle using DuplicateHandle() and the DUPLICATE_CLOSE_SOURCE flag.  That 
> way no server thread is necessary on Windows.

Note that this should not be done for socket handles since DuplicateHandle() is not supposed to work for them.  socket.share() and socket.fromshare() with a server thread can be used for sockets.

----------

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


More information about the Python-bugs-list mailing list