psychoone7 / pyftpdlib

Automatically exported from code.google.com/p/pyftpdlib
Other
0 stars 0 forks source link

Provide an API to explicitly interrupt a transfer #275

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Typical use case is when you want to abort a transfer of a big file.
DTPHandler class already provides get_transmitted_bytes() method, which returns 
the number of bytes being transferred.
What's missing is an abort_transfer(msg) method which will interrupt the 
transfer and send a "426 %(msg)s" response.

Original issue reported on code.google.com by g.rodola on 9 Dec 2013 at 5:27