[Twisted-Python] pb size limitation
Christopher Armstrong
radix at twistedmatrix.com
Tue May 6 14:39:51 MDT 2003
On 2003.05.06 16:30, Uwe C. Schroeder wrote:
>
> Hi,
>
> I want to transfer large chunks of data via pb xmlrpc.
> Theoretically that works, however I noticed that banana has a size limitation
> of 640k - which is not enough in my case.
> The limit seems hardcoded, so there is no way to set it higher without
> recompiling the whole thing for all platforms in question.
> Anyone got a better idea to transfer large files ?
> I guess ftp would be nice, however that requires firewallsettings.
> Does the same limitation exist thruout Twisted ?
HTTP is probably the best for doing file transfers. If you do want to
transfer files with PB, use twisted.spread.util.Pager. See StringPager
for an example. It's trivial to convert this to a FilePager.
If you really do want to change the size limit for banana, you can do it
per-process (patches to properly parameterize this accepted) by changing
banana.SIZE_LIMIT.
--
Twisted | Christopher Armstrong: International Man of Twistery
Radix | Release Manager, Twisted Project
---------+ http://twistedmatrix.com/users/radix.twistd/
More information about the Twisted-Python
mailing list