× 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.




Scott (and rob) thanks for your suggestion.
I have looked at this in the past, now this project might be the excuse I
need to use it.


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



Scott Klement
<midrange-l@scott
klement.com> To
Sent by: Midrange Systems Technical
midrange-l-bounce Discussion
s@xxxxxxxxxxxx <midrange-l@xxxxxxxxxxxx>
cc

06/05/2008 01:27 Subject
PM Re: FTP time-outs


Please respond to
Midrange Systems
Technical
Discussion
<midrange-l@midra
nge.com>






FTPAPI lets you specify the connection timeout value. Maybe it'd be
worth trying that? I don't know how you could accomplish the same thing
with the IBM client...

Alan Shore wrote:
Sorry I didn't respond in a more timely fashion.
Thanks to those people who responded
Rob@xxxxxxxxx suggested trying PING, unfortunately on a lot of the
external
sites PING has been disabled.
Vern made the suggestion below, but my problem is that if the site is
down,
I cannot ftp to their site to change anything, so that when I try to ftp
get, the ftp script fails, but the control does not pass back to my
program
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

PM
Subject
Re: FTP time-outs



Please respond to

Midrange Systems

Technical

Discussion

<midrange-l@midra

nge.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



--
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 ...

Replies:

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.