[Twisted-Python] hardcoded SIZE_LIMIT
Uwe C. Schroeder
uwe at oss4u.com
Wed Oct 8 13:29:05 MDT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I asked the same thing a while back.
Actually from the way Twisted is designed it's a good thing to have the size
limited. If you transfer large files in a return
like in
x=file(large_file)
return x.read()
you might end up with a pretty sluggish twisted, specially in a heavy multi
user environment. I switched to use the pager, which allows twisted to
transfer the file at it's own pace, and allows you to put in a preogress
dialog pretty easily since there is a callback on the chunks transmitted.
Go the extra mile to understand the pager - it's worth it in the long run.
On Wednesday 08 October 2003 01:40 am, Christoph Wiedemann wrote:
> Hello,
>
> 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 ?
>
> Regards,
> Christoph
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
- --
UC
- --
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE/hGWBjqGXBvRToM4RAroSAKCGbcgQgbnMBCaZ8nRhussM+5zHnQCfQBCt
HqInqRFNkOGmxeRWWpkN3OY=
=wKyI
-----END PGP SIGNATURE-----
More information about the Twisted-Python
mailing list