[pypy-issue] [issue1558] Pickling of connection support for Mac OSX and Linux

Anatoly tracker at bugs.pypy.org
Wed Jul 24 15:52:35 CEST 2013


New submission from Anatoly <a.vostrjakov at gmail.com>:

There isn't pickling of connection support now. Without this functionality is 
not possible pass file descriptor (open socket actually) to another process. If 
I try to import reduce_handle or rebuild_handle from multiprocessing.reduction I 
see following:

from multiprocessing.reduction import reduce_handle, rebuild_handle
  File "/Users/avostryakov/python/pypy/lib-
python/2.7/multiprocessing/reduction.py", line 55, in <module>
    raise ImportError('pickling of connections not supported')

When I looking in multiprocessing/reduction.py I see:

if not(sys.platform == 'win32' or hasattr(_multiprocessing, 'recvfd')):
    raise ImportError('pickling of connections not supported')

So, There isn't 'recvfd' in _multiprocessing module.

----------
messages: 5980
nosy: pypy-issue, vostryakov
priority: bug
release: 2.1
status: unread
title: Pickling of connection support for Mac OSX and Linux

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1558>
________________________________________


More information about the pypy-issue mailing list