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