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

Re: [Ftpapi] FTP API not closing socket after sending data?



Brad,

Does this happen with calls to ftp_put()?  Or Just ftp_putraw()?

It's been a long time since I've looked at FTPAPI (I don't need it for work these days) so the more specific info you can provide, the better.

Thanks!




On 4/19/2017 11:37 AM, Bradley Stone wrote:
FTP API beta version 3.0

I started using FTP API for a client and so far it works great except for one thing... after a STOR it seems to leave the data socket open.

Because we're sending a lot of files this eventually ends up with the system not being able to create more sockets (too many open) and the following FTP commands aren't run until the sockets eventually timeout.

In debugging I see that the call to FTP_putraw() opens wwSock but it's only closed if there is an error.

I could be missing something here. :)

Bradley V. Stone
www.bvstools.com <http://www.bvstools.com>
Native IBM i e-Mail solutions for Microsoft Office 365, Gmail, or any Cloud Provider!



--
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi