From owner-freebsd-current@FreeBSD.ORG Thu Mar 29 07:48:31 2007 Return-Path: X-Original-To: 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 1760516A402 for ; Thu, 29 Mar 2007 07:48:31 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id CED4B13C4BA for ; Thu, 29 Mar 2007 07:48:30 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 89FCE2100; Thu, 29 Mar 2007 09:48:26 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 7B210207E; Thu, 29 Mar 2007 09:48:26 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 3EFC6A1073; Thu, 29 Mar 2007 09:48:26 +0200 (CEST) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Nate Lawson References: <460AE39B.4070706@root.org> Date: Thu, 29 Mar 2007 09:48:26 +0200 In-Reply-To: <460AE39B.4070706@root.org> (Nate Lawson's message of "Wed, 28 Mar 2007 14:52:27 -0700") Message-ID: <86odmcqylx.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: current@FreeBSD.org 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 07:48:31 -0000 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 > <<< 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