Page 1 of 1

Timeout on data connection

Posted: Fri Aug 06, 2021 10:30 am
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

Re: Timeout on data connection

Posted: Fri Aug 06, 2021 11:41 pm
by Scott Klement
It sounds like a good idea to me.