Hi Everyone,
I'm running into an issue with FTP_list in FTPAPI — the call locks up, then eventually disconnects due to a timeout.
I traced the problem by testing directly from the command prompt. Running ls to produce a file listing would always hang and eventually disconnect.
Here’s the relevant portion of the log:
Unix Version: FTP server
cd /download
250 CWD command successful
ls
229 Entering Extended Passive Mode (|||20911|)
Using the command sendepsv 0 before running ls resolved the issue — the client entered normal passive mode instead of extended passive (EPSV).
I then forced the FTP client to never use EPSV by creating a data area:
CRTDTAARA DTAARA(QUSRSYS/QTMFTPEPSV) TYPE(*LGL) AUT(*USE)
After this, I no longer had to manually use sendepsv 0; all connections defaulted to standard passive mode.
However, I don’t see an option in FTPAPI to disable EPSV.
Does anyone know how to force FTPAPI to use standard passive mode instead of EPSV, or another workaround?
Thanks in advance!
Turning off Extended Passive Mode
Re: Turning off Extended Passive Mode
Hi
Version 2.6 has support for enhanced, as stated in the CHANGELOG.TXT - "Added support for enhanced (EPSV, EPRT) data channel commands"
This version is available at https://github.com/ScottKlement/ftpapi
Regards
Vern
Version 2.6 has support for enhanced, as stated in the CHANGELOG.TXT - "Added support for enhanced (EPSV, EPRT) data channel commands"
This version is available at https://github.com/ScottKlement/ftpapi
Regards
Vern