[pypy-issue] [issue971] multiprocessing connection needs htonl/ntohl

brownan tracker at bugs.pypy.org
Wed Dec 21 16:36:23 CET 2011


New submission from brownan <brownan at gmail.com>:

Multiprocessing connection objects are not compatible with CPython. To 
reproduce: 
run the example at

http://docs.python.org/library/multiprocessing.html#using-a-remote-manager

with one process using CPython and the other using pypy. Result: IOError: bad 
message length

According to Amaury on the list, this is because pypy neglects to call htonl and 
ntohl when sending and receiving bytes in 
pypy/module/_multiprocessing/interp_connection.py in e.g. do_send_string()

----------
messages: 3590
nosy: brownan, pypy-issue
priority: bug
status: unread
title: multiprocessing connection needs htonl/ntohl

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


More information about the pypy-issue mailing list