Antoine Pitrou added the comment:
A multiprocessing queue currently uses a 32-bit signed int to encode object
length (in bytes):
def _send_bytes(self, buf):
# For wire compatibility with 3.2 and lower
n = len(buf)
self._send(struct.pack("!i", n))
# The condition is necessary to avoid "broken pipe" errors
# when sending a 0-length buffer if the other end closed the pipe.
if n > 0:
self._send(buf)
I *think* we need to keep compatibility with the wire format, but perhaps we
could use a special length value (-1?) to introduce a longer (64-bit) length
value.
----------
nosy: +pitrou, sbt
type: -> enhancement
versions: +Python 3.4 -Python 3.3
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue17560>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com