[Twisted-Python] Large Transfers

Andrew Bennetts andrew-twisted at puzzling.org
Sat May 10 10:38:51 EDT 2003

On Sat, May 10, 2003 at 06:59:16AM -0700, Uwe C. Schroeder wrote:
> What I'm doing is to hand down XML data which is database-generated on the 
> server side. Whenever a user requests a too large resultset the network layer 
> fails. On the other hand the resultset already is in memory, so why not jut 
> transfer it ?
> I realize that his is probably bad design, but it's the easiest way to 
> transfer this information. Sure I can write the stuff to a temporary file and 
> page it over, however this defies the purpose, since then the original call 
> results in a message to go get the file. This means I need at least 4 

The PB paging support doesn't require you to write out to a file, look at
e.g. twisted.spread.pb.util.StringPager, the implementation is quite simple.

Does this solve your problem?  (I'm not a PB expert, so I can't really
answer your questions in depth).


More information about the Twisted-Python mailing list