Re: libUrlFtpUploadFile - reuse open sockets?

2009-04-15 Thread Bernard Devlin
My initial thought on seeing Phil's posting was that it might be a server setting and thus not something one can control at the client. I thought this because a couple of weeks ago I stumbled upon a discussion where SSH (for some user) was creating a new connection for each command sent to the

RE: libUrlFtpUploadFile - reuse open sockets?

2009-04-15 Thread Jim Bufalini
Hi Sarah, Rather than gambling and waiting for a timeout to occur and, assuming there aren't any other sockets open for other purposes, couldn't Phil just issue a resetAll in his uploadEnded command? This forces the close of all sockets and a reset of everything in liburl. Otherwise, a close of

libUrlFtpUploadFile - reuse open sockets?

2009-04-14 Thread Phil Davis
Howdy - While using libUrlFtpUploadFile to upload a bunch of files to a server, I find that libUrlFtpUploadFile opens a new socket for each upload. Even using a callback message to start a new one when the current one finishes, I get a max number of connections message back from the server

RE: libUrlFtpUploadFile - reuse open sockets?

2009-04-14 Thread Jim Bufalini
Hi Phil, While using libUrlFtpUploadFile to upload a bunch of files to a server, I find that libUrlFtpUploadFile opens a new socket for each upload. Even using a callback message to start a new one when the current one finishes, I get a max number of connections message back from the

Re: libUrlFtpUploadFile - reuse open sockets?

2009-04-14 Thread Jim Ault
I think that using a callback handler you can detect the 100% complete message from the server, then issue a 'QUIT' to close the connection immediately, then after getting the 'GOODBYE', start the next upload. I have not done this in practice that I know of (accidents do happen and things

Re: libUrlFtpUploadFile - reuse open sockets?

2009-04-14 Thread Phil Davis
Hi Jim B Jim A, Thanks for the replies. Actually I'm using libUrlFtpUploadFile because some of the files are movies (some 100mb), so I don't want to use a blocking command. The more I think about this, the more I believe it's a libUrl bug. If socket reuse works for download (which I

Re: libUrlFtpUploadFile - reuse open sockets?

2009-04-14 Thread Sarah Reichelt
While using libUrlFtpUploadFile to upload a bunch of files to a server, I find that libUrlFtpUploadFile opens a new socket for each upload. Even using a callback message to start a new one when the current one finishes, I get a max number of connections message back from the server when the

Re: libUrlFtpUploadFile - reuse open sockets?

2009-04-14 Thread Phil Davis
Thanks Sarah. Sarah Reichelt wrote: While using libUrlFtpUploadFile to upload a bunch of files to a server, I find that libUrlFtpUploadFile opens a new socket for each upload. Even using a callback message to start a new one when the current one finishes, I get a max number of connections