Timeout on data connection

Discussions related to FTPAPI (An FTP client package for RPG programming.) http://www.scottklement.com/ftpapi/
Post Reply
christiangut
Posts: 3
Joined: Fri Aug 06, 2021 8:52 am

Timeout on data connection

Post by christiangut »

Hi,

nice to see a forum instead of the mailing list.

I had two issues where FTPAPI was stalling on a directory listing. It might be that the ftp server has gone away. Nevertheless, FTPAPI was sitting on receiving the directory listing with ftp_list(). Upon investigating, I notices that the timeout we use on ftp_conn() is not used for the data connection (see pasvcmd() or portcmd()).

I think it would make sense to add wkTimeout to the call of tcp_conn() in pasvcmd() and portcmd()? Any arguments against doing so?

Kind Regards,

Christian
Scott Klement
Site Admin
Posts: 636
Joined: Sun Jul 04, 2021 5:12 am

Re: Timeout on data connection

Post by Scott Klement »

It sounds like a good idea to me.
Post Reply