Author sbt
Recipients jbrearley, sbt
Date 2013-01-11.01:05:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357866356.83.0.954557409074.issue16920@psf.upfronthosting.co.za>
In-reply-to
Content
Why are you connecting to a multiprocessing listener with a raw socket?  You should be using multiprocessing.connection.Client to create a client connection.

Connection.send(obj) writes a 32 bit unsigned int (in network order) to the socket representing the length of the pickled data for obj, followed by the pickled data itself.

Since you are doing a raw socket write, the server connection is misenterpreting the first 4 bytes of your message "abcd" as the length of the message.  So the receiving end needs to allocate space for

    struct.unpack("!I", "abcd")[0] == 1633837924 ~ 1.5Gb

causing the MemoryError.
History
Date User Action Args
2013-01-11 01:05:57sbtsetrecipients: + sbt, jbrearley
2013-01-11 01:05:56sbtsetmessageid: <1357866356.83.0.954557409074.issue16920@psf.upfronthosting.co.za>
2013-01-11 01:05:56sbtlinkissue16920 messages
2013-01-11 01:05:55sbtcreate