Re: lftp and locked file on STOR

"Alexander V. Lukyanov" <[email protected]> Tue, 31 Jul 2007 10:18:43 +0400
Newsgroups gmane.network.lftp.devel
Message-ID <[email protected]>
On Mon, Jul 30, 2007 at 06:05:34PM +0200, Thomas Zaech wrote:
> ... confirmed, lftp deletes files if it encounters a "4xx" status. In my opinion, deleting files after unsuccessful tranfers is at least surprising (if not a bug) so I added (patch -p1 -s <...) a helping line. As I hope: no unwanted side effect.

Unfortunately, this patch makes lftp fail on temporary transfer errors (4xx
errors are temporary by definition). lftp should retry the transfer when
it gets 4xx error.

> -   if(is5XX(act) && !Transient5XX(act))
> +   if((is5XX(act) && !Transient5XX(act))
> +               || is4XX(act))

-- 
   Alexander.