× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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 30 seconds - at least I think that is its meaning.

Run STAT from your FTP session to see what the values are for your session now. One of our machines comes back with

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 timeout is not. The inactivity timeout is also the source for the message you get 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 everyone
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 some
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 again
later.
Enter an FTP subcommand.
etc
etc

As usual, many thanks for any and all help offered



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
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.