Add a New Comment Rich Markup
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
I'm not very well versed with the FTP Protocol, so if I'm wrong here, someone please correct me. Is re-using a FTP connection even possible? Because I haven't been able to find anything in the RFCs or through online searches to supplement this. I thought this was actually one of the largest drawbacks of the protocol that we need to open a lot of extra connections. Can someone please point me to a resource explaining how this would work? If possible, I'd implement it.
Hello, reporting an old bug/report from the mailing list: if I use 'wget ftp://site.com/file1.txt ftp://site.com/file2.txt', wget will no reuse the ftp connection, but will open one for each document downloaded from the same site... https://www.mail-archive.com/wget%40sunsite.dk/msg03316.html https://bugs.debian.org/32353 thx and regards Noël
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 2 latest changes.
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.12