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
Timeout on data connection
-
- Site Admin
- Posts: 776
- Joined: Sun Jul 04, 2021 5:12 am
Re: Timeout on data connection
It sounds like a good idea to me.