Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to stop NCFTP from retrying indefinitely against a down server?

Reply
Thread Tools Display Modes

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

 
 
Ash
Guest
Posts: n/a

 
      04-12-2004, 05:58 PM
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
 
 
 
 
Ohmster
Guest
Posts: n/a

 
      04-13-2004, 10:18 PM
(E-Mail Removed) (Ash) wrote in
news:(E-Mail Removed) 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 (E-Mail Removed)

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
 
Ash
Guest
Posts: n/a

 
      04-17-2004, 10:15 PM
>
> 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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop DHCP Server in XP Alphacenturi Wireless Networks 1 03-20-2006 03:52 AM
Is there a way to disable tar compression in ncftp and/or vsftpd? ANTant@zimage.com Linux Networking 0 02-19-2005 02:38 PM
Re: ncftp username login problem Juhan Leemet Linux Networking 4 06-24-2004 02:04 AM
Re: ncftp username login problem p cooper Linux Networking 1 06-23-2004 05:31 PM
Problem w/NcFTP and IP addresses Keith Linux Networking 2 12-31-2003 12:42 AM



1 2 3 4 5 6 7 8 9 10 11