Message84680
John, can you try this on trunk:
from multiprocessing import *
latin = str
SENTINEL = latin('')
def _echo(conn):
for msg in iter(conn.recv_bytes, SENTINEL):
conn.send_bytes(msg)
conn.close()
conn, child_conn = Pipe()
p = Process(target=_echo, args=(child_conn,))
p.daemon = True
p.start()
really_big_msg = latin('X') * (1024 * 1024 * 32)
conn.send_bytes(really_big_msg)
assert conn.recv_bytes() == really_big_msg
conn.send_bytes(SENTINEL) # tell child to quit
child_conn.close() |
|
| Date |
User |
Action |
Args |
| 2009-03-30 22:11:19 | jnoller | set | recipients:
+ jnoller, jpe, ocean-city |
| 2009-03-30 22:11:19 | jnoller | set | messageid: <1238451079.15.0.939305482397.issue3551@psf.upfronthosting.co.za> |
| 2009-03-30 22:11:18 | jnoller | link | issue3551 messages |
| 2009-03-30 22:11:17 | jnoller | create | |
|