如果服务器限制每个连接的带宽,例如@fge在注释中表示,则建立多个连接以从FTP服务器下载文件可能是有益的。
我们来看看一些例子:
假设您有一个8 mbps的Internet连接,这使您的理论最大下载速度为1兆字节/秒。
Scenario 1: You're downloading a 100 megabyte file from an FTP server that doesn't impose a download limit.
If you're downloading the file using one connection, you download it
at 1 megabyte/sec, what takes you 100 seconds (1min 40sec).
By using two connections (assuming it is possible over FTP to download different pieces of one file at the same time) you download the file at 0.5 megabytes/sec
for each connection, totaling 1 megabyte/sec, what also takes you 100
seconds (1min 40sec) to download the file.
So we conclude that, in this scenario, multiple connections do not
help.
Scenario 2: You're downloading a 100 megabyte file from an FTP server that imposes a download limit of 0.5 megabytes/sec fo