[Twisted-Python] Large file transfers

Chris Armstrong carmstro at twistedmatrix.com
Fri Jul 26 08:41:27 EDT 2002


On Fri, Jul 26, 2002 at 02:31:29PM +0200, Paul Boehm wrote:
> On Thu, Jul 25, 2002 at 02:45:09PM -0400, Steve Waterbury wrote:
> >     File Transfer layer for PB.  This would be especially nice for
> >     twisted.words; having standard a way to transfer "large" (100MB+) packets
> >     across or in tandem with a PB connection without breaking anything would be
> >     very good.
> 
> i also require filetransfers over pb for my project,
> i think twisted currently is lacking a protocol for reading files
> in a reliable manner (nfs, fifos, ...). i doubt i'm skilled enough,
> but i'm trying to implement protocols.file right now, hoping this
> will help me with getting files accross pb later. suggestions?

AFAIK, twisted.web.static _does_ do non-blocking reading, so check that out.
I don't think anyone has implemented non-blocking writing yet. (There's some
sort of FileWrapper protocol or somesuch IIRC, but it just assumes that
write() won't take very long -- it's only for testing)




More information about the Twisted-Python mailing list