How to stop NCFTP from retrying indefinitely against a down server?

This is a discussion on How to stop NCFTP from retrying indefinitely against a down server? within the Linux Networking forums, part of the Linux Forums category; Folks, We use ncftp client to connect to remote FTP servers. When the remote server is down, ncftp keep retrying ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2004
Ash
 
Posts: n/a
Default How to stop NCFTP from retrying indefinitely against a down server?

Folks,

We use ncftp client to connect to remote FTP servers. When the remote
server is down, ncftp keep retrying to connect to the server
indefinitely. In the retry process, the ftp client starts chewing up
the machine's CPU and memory. I have emailed several messages to
ncftp support, but can't get help, because ncftp client is a free
product. I am sure, others might have run into a situation like this
as well.

Is there a way to change the number of retries to a fixed number in
NCFTP?

Thanks.

Ash


================================================== ====================
We are using the following release (latest, as per ncftp website):
Program version: NcFTP 3.1.7/119 Jan 07 2004, 12:44 AM
Library version: LibNcFTP 3.1.7 (January 6, 2004)

Our Unix System:
System: OSF1 V5.1 732 alpha

Our preference file for NCFTP looks like the following:
anon-password=NcFTP@
auto-ascii=|.txt|.asc|.html|.htm|.css|.xml|.ini|.pl|.hq x|.cfg|.c|.h|.cpp|.hpp|.bat|.m3u|.pls|
auto-resume=no
autosave-bookmark-changes=no
confirm-close=yes
connect-timeout=20
control-timeout=135
logsize=10240
one-time-messages-seen=
pager=more
passive=on
progress-meter=2 (statbar)
redial-delay=20
save-passwords=ask
show-status-in-xterm-titlebar=no
so-bufsize=0 (use system default)
xfer-timeout=3600
yes-i-know-about-NcFTPd=no
Reply With Quote
  #2 (permalink)  
Old 04-14-2004
Ohmster
 
Posts: n/a
Default Re: How to stop NCFTP from retrying indefinitely against a down server?

velcroak@hotmail.com (Ash) wrote in
news:3a70a8e4.0404120958.1044fb3e@posting.google.c om:

> Is there a way to change the number of retries to a fixed number in
> NCFTP?


From the "man ncftp" documentation:


COMMAND REFERENCE

set

This lets you configure some program variables, which are saved
between runs in the $HOME/.ncftp/prefs file. The basic syntax
is:

set <option> <value>

For example, to change the value you use for the anonymous pass
word, you might do:

set anon-password ncftp@ncftp.com

See the next section for a list of things you change.



connect-timeout

Previous versions of the program used a single timeout value for
everything. You can now have different values for different
operations. However, you probably do not need to change these
from the defaults unless you have special requirements.

The connect-timeout variable controls how long to wait, in sec-
onds, for a connection establishment to complete before consid-
ering it hopeless. You can choose to not use a timeout at all
by setting this to -1.

Do this stuff in the command shell, this is what you get when you first run
ncftp before connecting to a remote server.


This should help you out. man ncftp


--
~Ohmster
Reply With Quote
  #3 (permalink)  
Old 04-18-2004
Ash
 
Posts: n/a
Default Re: How to stop NCFTP from retrying indefinitely against a down server?

>
> connect-timeout
>


Sorry Ohmster. I have no problem with the timeout. NCFTP timeout
properly, it's the retry, which I am having trouble. It keeps
retrying forever.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 01:04 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0