sebastinas / yafc

Yafc is yet another ftp client (with some handy features)
Other
45 stars 16 forks source link

Use several connections at the same time #51

Open sebastinas opened 9 years ago

sebastinas commented 9 years ago

From Debian bug 782184:

As you might know, FTP is bad at handling of small files. It needs to establish a new TCP connection for the data and always need several round trip between the client and the server. Thus, the time to transfer several small files is dominated by the latency rather than the actual data transfer.

Using several connections to perform some commands / transfers in parallel may improve the performance. Yafc could open several command connections to the server and dispatch its commands to the connections.

The main issue is, I think, that the current code has been thought for synchronous IO operations. And refactoring it to handle asynchronous file transfers may take a sensible amount of work.

sebastinas commented 9 years ago

Patches welcome.