Scott,
I only traced ftp_putraw() in debug from the ftp_put() that I am
using. This in a sense all my application does:
sess = ftp_conn(ip:user:pw);
ftp_binaryMode(sess: *on);
ftp_put(sess:remoteFile:localFilel);
ftp_quit(sess);
On connect I see one ftp job in netstat open.
On ftp_put() I see a second socket opened for data.
On ftp_quit() I see the first socket close, but the one created from
ftp_put() stays open and eventually does time out and end after a
minute or 2 (I didn't time it exactly).
I hope this helps! I mean, I know I can go in and updated it, but I
wanted to make sure I'm not doing something wrong on my end.
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!
On Thu, Apr 20, 2017 at 2:19 PM, Scott Klement <sk@xxxxxxxxxxxxxxxx
<mailto:sk@xxxxxxxxxxxxxxxx>> wrote:
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>
<http://www.bvstools.com>
Native IBM i e-Mail solutions for Microsoft Office 365, Gmail,
or any Cloud Provider!
--
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx <mailto:Ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
http://scottklement.com/mailman/listinfo/ftpapi
<http://scottklement.com/mailman/listinfo/ftpapi>