[Twisted-Python] FTPClient - aborting transfers

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Wed Sep 9 21:47:23 EDT 2009

On 9 Sep, 01:28 pm, matt at bennett.name wrote:
>The only reference to dtpInstance I can find in
>twisted/protocols/ftp.py exists on the FTP class. I may be confused,
>but I thought this class was the protocol for FTP servers, rather than

You're right, I wasn't thinking about clients.
>In my attempt to find and stop *something* on the FTPClient, I ended
>up calling finish() on the IFinishableConsumer passed into
>FileSender's send method. This seems to stop the transfer in the store
>case, but unfortunately I'm no closer to a solution when retrieving a
>Am I missing something?

It seems FTPClient doesn't really keep track of enough objects to make 
this easy.  A patch addressing this would be welcome.


More information about the Twisted-Python mailing list