Re: issue with SITE commands and retries

Mattias Bergvall <[email protected]> Thu, 12 Mar 2015 09:55:13 +0100
Newsgroups gmane.network.lftp.user
Message-ID <CAA3cMzEO7sn0pHuU_mPSnWOENqLLCMQ4oPcL+U3wc1QMVrhDeg@mail.gmail.com>
Hi again.
The problems with FTP-retries is not fixed when setting "net:max-retries 1"
and "cmd:fail-exit true". Am I using the wrong variables?

I use "LFTP | Version 4.6.0 | Copyright (c) 1996-2014 Alexander V.
Lukyanov" with "Libraries used: Readline 5.1, zlib 1.2.3", and still get 1
automatic FTP retry when the FTP server uncleanly closes the session, (and
since I didn't set "ftp:site", it didn't re-issue the site commands).

Regarding the double-spaces in the ftp:site option, what would happen if
there are trailing spaces or more than 2 spaces between two site commands?


Thanks again for a great product!


Kind regards
Mattias Bergvall

On Wed, Jun 11, 2014 at 11:37 AM, Alexander V. Lukyanov <[email protected]>
wrote:

> On Tue, Jun 10, 2014 at 10:58:12AM +0200, Mattias Bergvall wrote:
> > I have an issue with LFTP (Version 4.4.15) when it comes to “misbehaving”
> > mainframe remote sites.
> > The problem occurs when the FTP server/proxy  (IBM FTP CS V1R13) fails to
> > get exclusive permissions to the target dataset (file).
> > The server then issues a 125 message and terminates the connection.
> (Which
> > I think is incorrect behavior, but that's not the point).
> >
> > What happens next is that lftp reconnects again (I have net:max-retries =
> > 1. I don’t want it to retry!) and does NOT issue the SITE commands that
>
> The problem with retries should be fixed in 4.5.2.
>
> You can also try this patch for 4.5.2 which adds "ftp:site" setting for
> tuning the connection after login. For your case it would be
>
>    set ftp:site "SBD=(IBM-278,ISO8859-1)  LRECL=240  RECFM=FB"
>
> (note the double spaces).
>
> --
>    Alexander.
>

_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp