GithubHelp home page GithubHelp logo

Comments (4)

FanDjango avatar FanDjango commented on July 26, 2024

You need to read up on how the FTP protocol works. Transfers of files and also of directory listings use a second tcp connection ("the data connection"). You can have only one of these (per connected client). So while a transfer is using the data connection, you should not attempt to start a second transfer. File-Transfer and Listing-Transfer both qualify as "data connection users".

Attempting to do this will produce an error message on the control connection, which is out of bounds data and it will be misinterpreted or even cause desync of the command/response logic of FluentFTP, as you can see in the log.

Simply create more than one client and connect, then you could do something like that. Note that many servers restrict the number of clients in total and also from a single source IP, so doing something like that is not really in the spirit of nice behaviour as a FTP server client/user. FTP as a protocol is essentially "serial".

from fluentftp.

adfansong avatar adfansong commented on July 26, 2024

You need to read up on how the FTP protocol works. Transfers of files and also of directory listings use a second tcp connection ("the data connection"). You can have only one of these (per connected client). So while a transfer is using the data connection, you should not attempt to start a second transfer. File-Transfer and Listing-Transfer both qualify as "data connection users".

Attempting to do this will produce an error message on the control connection, which is out of bounds data and it will be misinterpreted or even cause desync of the command/response logic of FluentFTP, as you can see in the log.

Simply create more than one client and connect, then you could do something like that. Note that many servers restrict the number of clients in total and also from a single source IP, so doing something like that is not really in the spirit of nice behaviour as a FTP server client/user. FTP as a protocol is essentially "serial".

Thanks for your explanation.

I've used the aysnc methods:
Connect/Disconnect, GetListing,Download/Upload,Delete,Move,CreateDirectory.

So I need to invoke them one after another?

from fluentftp.

FanDjango avatar FanDjango commented on July 26, 2024

Yes. Connect -> Getlisting -> Download(more than one, each one: one after the other) -> etc. etc -> Disconnect. One client can only do one operation at a time.

from fluentftp.

adfansong avatar adfansong commented on July 26, 2024

Yes. Connect -> Getlisting -> Download(more than one, each one: one after the other) -> etc. etc -> Disconnect. One client can only do one operation at a time.

OK, I will rewrite like that. Thanks very much!

from fluentftp.

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.