Date: Thu, 29 Mar 2007 09:48:26 +0200 From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Nate Lawson <nate@root.org> Cc: current@FreeBSD.org Subject: Re: libfetch ftp patch for less latency Message-ID: <86odmcqylx.fsf@dwp.des.no> In-Reply-To: <460AE39B.4070706@root.org> (Nate Lawson's message of "Wed, 28 Mar 2007 14:52:27 -0700") References: <460AE39B.4070706@root.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Nate Lawson <nate@root.org> writes: > To speed up pkg_add and other ftp command channel performance over slow > links, change this: > >>>> PWD > <<< 257 "/" >>>> CWD pub > <<< 250 Directory successfully changed. >>>> CWD FreeBSD > <<< 250 Directory successfully changed. >>>> CWD ports > <<< 250 Directory successfully changed. >>>> CWD amd64 > <<< 250 Directory successfully changed. >>>> CWD packages-6-stable > <<< 250 Directory successfully changed. >>>> CWD Latest > <<< 250 Directory successfully changed. >>>> MODE S > > Into this: > >>>> PWD > <<< 257 "/" >>>> CWD pub/FreeBSD/ports/amd64/packages-6-stable/Latest > <<< 250 Directory successfully changed. No. This is a violation of the FTP protocol. > All ftp servers I've ever seen support a full path when changing down > dirs. This might be a DOS ftp server thing however. In any case, if > there is an error to the all-in-one CWD, the code reverts back to legacy > behavior of multiple CWDs. When the all-in-one CWD fails, you're SOL. You have no idea what state the server is in, and you have to start over. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86odmcqylx.fsf>