Giter VIP home page Giter VIP logo

Comments (8)

mscdex avatar mscdex commented on June 26, 2024 1

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).

from node-ftp.

alolis avatar alolis commented on June 26, 2024

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.

from node-ftp.

mscdex avatar mscdex commented on June 26, 2024

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.

from node-ftp.

alolis avatar alolis commented on June 26, 2024

Thanks for your time mscdex!

from node-ftp.

kenichi-shibata avatar kenichi-shibata commented on June 26, 2024

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

from node-ftp.

mscdex avatar mscdex commented on June 26, 2024

@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.

from node-ftp.

alolis avatar alolis commented on June 26, 2024

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

from node-ftp.

mscdex avatar mscdex commented on June 26, 2024

Ah yes, sorry.

from node-ftp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.