Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Concurrent Connections #18

Closed
alolis opened this issue Jul 15, 2012 · 8 comments
Closed

Multiple Concurrent Connections #18

alolis opened this issue Jul 15, 2012 · 8 comments

Comments

@alolis
Copy link

alolis commented Jul 15, 2012

Hello,

I would like if this feature is supported by node-ftp. I went through documentation but i couldn't find anything. If not, is it going to?

Thank you for your time

@mscdex
Copy link
Owner

mscdex commented Jul 15, 2012

Can you explain what you mean by "multiple concurrent connections?"

You can create as many instances of the FTP client that you need, provided your FTP server allows multiple connections (from the same user/IP/etc).

@alolis
Copy link
Author

alolis commented Jul 16, 2012

I am referring to the ability to make multiple calls to get/put in order to download/upload multiple files in parallel. Do i achieve this by what you proposed? Multiple FTP client instances? I would expect to do it with one instance and call connection.get() or connection.put() multiple times but that will do as well.

@mscdex
Copy link
Owner

mscdex commented Jul 16, 2012

The way the FTP protocol is designed, you cannot perform multiple transfers on a single connection at the same time. If you need to do it in parallel, you might look into using generic-pool with this module.

@mscdex mscdex closed this as completed Jul 16, 2012
@alolis
Copy link
Author

alolis commented Jul 16, 2012

Thanks for your time mscdex!

@kenichi-shibata
Copy link

@mscdex I'm trying to do multiple 'put' operation in one connection can you show me an example how to this using generic-pool?

@mscdex
Copy link
Owner

mscdex commented Dec 30, 2015

@alolis You can't do multiple operations in parallel on a single connection. If you're using something like generic-pool, you're using multiple connections. I do not have any specific examples for using with generic-pool but it should be fairly straight forward if you follow their documentation.

@alolis
Copy link
Author

alolis commented Dec 31, 2015

@mscdex , wrong user :p You probably meant @fr-kshibata

@mscdex
Copy link
Owner

mscdex commented Jan 1, 2016

Ah yes, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants