[lftp-devel] Lftp 4.5.4 compilation errors
Receiving the following errors that are stopping compilation: lftp_ssl.cc: In constructor 'lftp_ssl_openssl::lftp_ssl_openssl(int, lftp_ssl_base::handshake_mode_t, const char*)': lftp_ssl.cc:835: error: 'SSL_set_tlsext_host_name' was not declared in this scope Versions: gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-54) openssl version openssl 0.9.8e-el5 ssh -V openssh 6.6p1, openssl 1.0.1h Any help would be appreciated. -- ANDREW REIS | MCTS, NETWORK+, MOBILITY+ NETWORK/SYSTEMS ANALYST _WINDOWS SUPPORT/WEBMASTER_ _DBMS INC._ ___ lftp-devel mailing list lftp-devel@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp-devel
Re: [lftp] lftp 4.5.4
Hi! (using v 4.5.2) I wonder how to prevent retries and to make LFTP fail-exit on connection problems (when the server is down, for instance). I have a command file like this: set ftp:use-feat false set dns:fatal-timeout 50 set net:max-retries 1 set cmd:fail-exit true set ftp:sync-mode true set ftp:use-site-utime false set net:connection-limit 1 set ftp:nop-interval 15 set net:timeout 30 open ilprt1.ilnet.se cd /hold put xxx -o yyy and get these reoccuring attempts until it succeeds: Resolving host address... 1 address found: 10.53.11.35 Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Resolving host address... 1 address found: 10.53.11.35 Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Resolving host address... 1 address found: 10.53.11.35 Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Socket error (Connection refused) - reconnecting Closing control socket Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 Timeout - reconnecting Closing control socket Connecting to ilprt1.ilnet.se (10.53.11.35) port 21 --- 220 EFI FTP Print server ready. --- USER vidare ... Is there any option I can use to make it abort and fail with non-zero return code instead of retrying? Thanks! BR Mattias Bergvall ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp
Re: [lftp] lftp 4.5.4
On Mon, Aug 11, 2014 at 09:22:16AM +0200, Mattias Bergvall wrote: I wonder how to prevent retries and to make LFTP fail-exit on connection problems (when the server is down, for instance). Please try this patch. -- Alexander. diff --git a/src/FileAccess.cc b/src/FileAccess.cc index 7582e4f..1b13074 100644 --- a/src/FileAccess.cc +++ b/src/FileAccess.cc @@ -59,6 +59,7 @@ void FileAccess::Init() pos=0; mode=CLOSED; retries=0; + max_retries=0; opt_date=0; opt_size=0; fileset_for_info=0; @@ -192,7 +193,6 @@ void FileAccess::Close() opt_size=0; fileset_for_info=0; retries=0; - max_retries=0; entity_size=NO_SIZE; entity_date=NO_DATE; ascii=false; diff --git a/src/NetAccess.cc b/src/NetAccess.cc index 2316579..18a9fdd 100644 --- a/src/NetAccess.cc +++ b/src/NetAccess.cc @@ -317,17 +317,20 @@ bool NetAccess::NextTry() reconnect_interval_current=reconnect_interval_max; } retries++; + LogNote(10,attempt number %d (max_retries=%d),retries,max_retries); return CheckRetries(); } bool NetAccess::CheckRetries() { if(max_retries0 retriesmax_retries) { - Fatal(_(max-retries exceeded)); + if(!IsConnected() last_disconnect_cause) +Fatal(xstring::cat(_(max-retries exceeded), (,last_disconnect_cause.get(),),NULL)); + else +Fatal(_(max-retries exceeded)); return false; } reconnect_timer.Set(reconnect_interval_current); - LogNote(10,attempt number %d,retries); return true; } void NetAccess::TrySuccess() ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp
Re: [lftp] lftp 4.5.4
Great! This patch works perfectly. Thanks a lot! You are really quick! BR Mattias Bergvall On Mon, Aug 11, 2014 at 12:53 PM, Alexander V. Lukyanov l...@netis.ru wrote: On Mon, Aug 11, 2014 at 09:22:16AM +0200, Mattias Bergvall wrote: I wonder how to prevent retries and to make LFTP fail-exit on connection problems (when the server is down, for instance). Please try this patch. -- Alexander. ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp
Re: [lftp] FW: lftp output
On Sat, Aug 09, 2014 at 06:48:06PM +0100, Jorge Mendes wrote: Those 5 errors are file size decreased during transfer. It's weird because its not correct, all transfers are good. Please check the version of lftp. Such an error was fixed in 4.4.13 (the bug existed in 4.4.12). If possible, upgrade to the latest version 4.5.4. -- Alexander. ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp