Archived Forum Post

Index of archived forum posts

Question:

FTP2/SFTP concurrent downloads with threads or connections?

Aug 20 '12 at 12:25

I guess the answer also depends on the (S)FTP Server, but how would you advise I implement concurrent downloads? Can I use the same CkFtp2 handle and initiate multiple GetFile's on it (in different threads)? Or should I use multiple CkFtp2 connections?

Is the answer different for CkSftp?

Thanks.


Answer

Gert,

To do multiple concurrent downloads (or uploads), each thread should have its own instance of the FTP or SFTP object, each with its own connection. It's not possible to do multiple concurrent transfers with a single object instance.

-Matt