From owner-freebsd-current@FreeBSD.ORG Thu Mar 29 17:31:50 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3DFFD16A407; Thu, 29 Mar 2007 17:31:50 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (smtp1.utsp.utwente.nl [130.89.2.8]) by mx1.freebsd.org (Postfix) with ESMTP id B7F3513C45A; Thu, 29 Mar 2007 17:31:49 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from nox.student.utwente.nl (nox.student.utwente.nl [130.89.165.91]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id l2TH50Lr014037; Thu, 29 Mar 2007 19:05:00 +0200 From: Pieter de Goeje To: freebsd-current@freebsd.org Date: Thu, 29 Mar 2007 19:04:59 +0200 User-Agent: KMail/1.9.6 References: <460AE39B.4070706@root.org> <86odmcqylx.fsf@dwp.des.no> In-Reply-To: <86odmcqylx.fsf@dwp.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200703291905.00192.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact helpdesk@ITBE.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= , current@freebsd.org, Nate Lawson Subject: Re: libfetch ftp patch for less latency X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Mar 2007 17:31:50 -0000 On donderdag 29 maart 2007, Dag-Erling Sm=F8rgrav wrote: > Nate Lawson 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 Why not put the / before the path? That way you don't need to 'PWD' first. > > > > <<< 250 Directory successfully changed. > > No. This is a violation of the FTP protocol. I'm reading rfc 959 right now, and it include examples of CWD with full=20 pathname (multiple directories). Actually the rfc is kinda vague about this. > > > 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. Agreed. > > DES Regards, Pieter de Goeje