Comments (4)
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.
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.
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.
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)
- Problems uploading a file into a ftp server with TLS HOT 7
- AsyncFtpClient - The operation has timed out HOT 29
- PRT and EPRT don't respect the configured proxy HOT 6
- GetObjectInfo fails for file names with spaces HOT 6
- Error on FTP UPDATFILE after sucessfull connect HOT 1
- Override Read(Span), ReadAsync(Memory), Write(ROS), WriteAsync(ROM) in streams HOT 3
- Issue with AS400 change - AfterConnect actions cannot be undone HOT 22
- Should FTP work be done with temp files? HOT 5
- GetListing Chinese garbled characters HOT 3
- Timeouts when downloading certain files HOT 2
- ftp.GetListing(path) HOT 1
- using the GetListing Error HOT 2
- FluentFTP.GnuTLS possible memory leak HOT 12
- UploadDirectory in Mirror mode occasionally deletes destination folder's entire contents HOT 6
- Allways getting Timed Out error while using Azure Funtions to connect an FTPs HOT 2
- Timed out trying to read data from the socket stream HOT 40
- Code: 550 Message: Command STOR failed HOT 3
- Client.DownloadFile() fails with FtpVerify.Retry with a path with spaces HOT 6
- FtpRemoteExists.Overwrite now performs a delete+create rather than in-place overwrite HOT 9
- UploadFiles method throws OperationCanceledException cannot be captured, this cause wpf program crash
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluentftp.