|
Sorry I didn't respond in a more timely fashion.external
Thanks to those people who responded
Rob@xxxxxxxxx suggested trying PING, unfortunately on a lot of the
sites PING has been disabled.down,
Vern made the suggestion below, but my problem is that if the site is
I cannot ftp to their site to change anything, so that when I try to ftpprogram
get, the ftp script fails, but the control does not pass back to my
for quite a while.
So, if anyone has anymore suggestions?
Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxxxxx
P:(631) 244-2000 ext. 5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill
vhamberg@comcast.
net
Sent by:To
midrange-l-bounce Midrange Systems Technical
s@xxxxxxxxxxxx Discussion
<midrange-l@xxxxxxxxxxxx>
cc
06/04/2008 05:16
PMSubject
Re: FTP time-outs
Please respond to
Midrange Systems
Technical
Discussion
<midrange-l@midra
nge.com>
30
Alan
There is a little-known server sub-command that can be used to set
time-outs
TIME <inactivity> <transfer>: Sets server time-out values for this FTP
session.
<transfer> is optional
This is run using the QUOTE client sub-command
So from your client you can run
quote time 900 30
sets inactivity timeout to 15 minutes and waiting for data to arrive to
seconds - at least I think that is its meaning.session
Run STAT from your FTP session to see what the values are for your
now. One of our machines comes back withtimeout
211-File transfer time-out value set to 420 seconds.
211 Current inactivity time-out value set to 3600 seconds.
when using ftp to loopback.
Inactivity timeout is settable with the CHGFTPA command - transfer
is not. The inactivity timeout is also the source for the message you getagain
from an iSeries when you first enter an FTP session - Connection will not
be closed... ' or 'Connection will close if idle...'
This might have no effect on a Windows FTP server or a Linux one.
HTH
Vern
-------------- Original message --------------
From: Alan Shore <AlanShore@xxxxxxxx>
Morning everyonesome
I have a question concerning ftp. Hopefully my question comes across the
way I want it to.
We have a script that gets files via ftp from different sites. If for
reason that ftp site is not available, we have to wait for a time-out to
occur on the ftp request.
Who controls that time-out? Is there a way to programmatically recognize
that situation to circumvent the time-out?
Here is a copy of what the FTPLOG looks like
6/03/08 22:08:30 XXXXXXXX Send FTP File (SNDFTPF) Command Log
Input read from specified override file.
Connecting to remote host 123.45.678.901 using port 21.
Cannot connect to host 123.45.678.901 at address123.45.678.901. Try
--
later.
Enter an FTP subcommand.
etc
etc
As usual, many thanks for any and all help offered
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.