[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] [bug #45689] wget: opens a new connection for each ftp docume

From: Ander Juaristi
Subject: [Bug-wget] [bug #45689] wget: opens a new connection for each ftp document
Date: Sat, 15 Aug 2015 13:01:24 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0

Follow-up Comment #2, bug #45689 (project wget):

Hi Darshit,

This is not the same concept as the persistent connections in HTTP (those with
Connect: Keep-Alive).

What happens here is that if you download two documents from the same FTP
server (ie. `wget ftp://site.com/file1.txt ftp://site.com/file2.txt`) Wget
will open a connection, download the file, and close the connection again for
each of the files. This is inefficient if we take into account that both files
are stored in the same server (ie, site.com). It'd be better to open the
connection to site.com once, and send two RETRs over the same connection, and
then close the connection. It's a simple concept, in reality.

This happens because the traversal is done in recur.c, whereas the actual
connection-download-close process is done in ftp.c, and there's no
relationship between both.

This issue was among my favorites, but I won't work on it until at least one
month, so feel free to fix this, if you want :D


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]