There's no way for the server to know whether the client closed the
connection because the file was entirely sent or because the user hit
an "abort button" because in both cases Filezilla client makes a clean
socket close() call.
I'd say that Filezilla client is misbehaving here, and should use a
different approach when it comes to aborting an upload which is
either:
- use ABOR
- do not use ABOR but use something different than a clean
socket.close() call. Maybe socket.shutdown(), I'm not sure, point is
the data socket should be closed "abruptly" or "not in a clean way".
Note that this problem does not exist for downloads (server sending a
file to client) because in that case the server knows the exact size
of the file and the number of bytes being sent over the socket, hence
it can decide whether replying with 226 or 426 and trigger the right
callback function (on_file_sent() or on_incomplete_file_sent()).
Maybe it would make sense to bring this topic to the attention of
Filezilla client developers.
Hope this helps,
--- Giampaolo
2010/11/9 Bram <avon...@gmail.com>:
> --
> You received this message because you are subscribed to the "Python FTP server library" project group:
> http://code.google.com/p/pyftpdlib/
> To post to this group, send email to pyft...@googlegroups.com
> To unsubscribe from this group, send email to pyftpdlib-...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/pyftpdlib