[Twisted-Python] hardcoded SIZE_LIMIT

Alex Levy mesozoic at polynode.com
Wed Oct 8 03:17:56 MDT 2003


On Wed, 2003-10-08 at 04:40, Christoph Wiedemann wrote:
> i'm trying to use PB for remote procedure calls in the context of numeric
> computations. So far things work really well (Twisted is a real cool piece of
> software!), but now i'm trapped by twisted.spread.banana.SIZE_LIMIT. I need to
> send pretty much data over the network (~512 MB) and tried out to set the
> SIZE_LIMIT to 640 MB. Hmm, still getting the "String too long exception", cause
> the 640 kB are hardcoded in cBanana.c. Any chances to make the limit
> configurable ?

I encountered the same problem; my solution was simply to split strings
into multiple pieces and combine them at the receiving end. (I also used
the gzip module to compress them.) I did all this in getStateToCopy and
setCopyableState, which are documented here:
<http://twistedmatrix.com/documents/howto/pb-copyable#auto6>

-- 
Alex Levy
WWW: http://mesozoic.geecs.org

"Never let your sense of morals prevent you from doing what is right."
-- Salvor Hardin, Isaac Asimov's _Foundation_

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: </pipermail/twisted-python/attachments/20031008/ba404588/attachment.sig>


More information about the Twisted-Python mailing list