[issue4892] Sending Connection-objects over multiprocessing connections fails

sbt report at bugs.python.org
Mon Apr 9 13:49:58 CEST 2012


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

There is an undocumented function multiprocessing.allow_connection_pickling() whose docstring claims it allows connection and socket objects to be pickled.

The attached patch fixes the multiprocessing.reduction module so that it works correctly.  This means that TestPicklingConnections can be reenabled in the unit tests.

The patch uses the new socket.share() and socket.fromshare() methods on Windows.

----------
keywords: +patch
Added file: http://bugs.python.org/file25160/mp_pickle_conn.patch

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


More information about the Python-bugs-list mailing list