[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with Scott's procedure FTP_list



Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>


hi Werner,


The Job, which uses the FTP API, runs on status "TIMW" :

Subsystem/Job  User            Type  CPU %   Function             Status
 SRC540_40    N175SRMS    BCH    0,0      PGM-SRC540       TIMW

When I debug the program, I'm standing on the statement with the FTP_List
call:

rc = FTP_List(fd: ' ':99:%addr(incoming): num_files);


The FTP_list() subprocedure is waiting for data to come over the network, and it's not receiving it.

Each time FTP transfers data (with a GET, PUT or LIST request) the client and server negotiate a new TCP port to send it over. The flaw in this logic is that there might be a firewall in between. Since it uses a different port each time, that will frequently cause problems.

My guess is that you have a range of ports that's open on the firewall for FTP. When one happens to fall outside of that range (perhaps this only happens rarely) the data transfer connection gets "stuck".

I can't really fix this inside FTPAPI. The best I could do is make it time out so that you could try again. Unfortunately, I don't know when I'll have time to work on it...

---
Scott Klement  http://www.scottklement.com

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------