[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: TimeOut for STOR
Hi Rick,
From the article:
A timeout value. All subsequent FTP commands that use this FTP session time out after this many seconds.
So, yes, setting the timeout on the open should work on the FTP_PUT. There is no separate timeout value for the FTP_PUT itself.
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Rick Hill
Sent: Monday, July 01, 2013 10:20 AM
To: HTTPAPI and FTPAPI Projects
Subject: RE: TimeOut for STOR
The FTP_PUT is where the program seems to stall the FTP_CONN is connecting.
Do I have any control on how long the FTP_PUT tries to send?
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mike Krebs
Sent: Monday, July 01, 2013 10:53 AM
To: HTTPAPI and FTPAPI Projects
Subject: RE: TimeOut for STOR
FTP_open(): Open a connection to an FTP server
peHost = host to connect to.
pePort = (optional) port number to connect to. If not given,
FTPAPI will use the FTP_PORT constant
peTimeout = (optional) time to wait for data from server before
giving up. (seconds) default is 0 (wait forever)
sess = FTP_open(host: FTP_PORT: 60)
Sets the timeout to 60 seconds.
REFERENCE: http://iprodeveloper.com/rpg-programming/ftpapi-scotts-utility-assist-batch-ftp-programming
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Rick Hill
Sent: Monday, July 01, 2013 8:34 AM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: TimeOut for STOR
I have an FTP job using FTPAPI and was wondering if there is a way to timeout the STOR.
We have a daily job that submits a file every hour during the day via FTP. On several
Occasions we've had the job just hand on the STOR command. Is there a way for me
to have this timeout/error-out so I can handle this situation?
The last message I have in the joblog is the following. It doesn't give an error it just
Hangs at this command.
Additional Message Information
Message ID . . . . . . : CPF9897 Severity . . . . . . . : 40
Message type . . . . . : Diagnostic
Date sent . . . . . . : 06/28/13 Time sent . . . . . . : 17:01:38 (its normally this time it fails, maybe the receiver has shutdown their FTP server)
Message . . . . : 0: > STOR andersonco_taxsaled_06282013170138.csv
Cause . . . . . : No additional online help information is available.
Thanks for any info,
Rick
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------