From owner-freebsd-current@FreeBSD.ORG Fri Apr 20 08:09:59 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 8AB2616A401; Fri, 20 Apr 2007 08:09:59 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.freebsd.org (Postfix) with ESMTP id CDC5313C457; Fri, 20 Apr 2007 08:09:55 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.4) with ESMTP id l3K7iPbE038632; Fri, 20 Apr 2007 11:44:25 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.4/Submit) id l3K7iOAH038627; Fri, 20 Apr 2007 11:44:24 +0400 (MSD) (envelope-from yar) Date: Fri, 20 Apr 2007 11:44:23 +0400 From: Yar Tikhiy To: Nate Lawson Message-ID: <20070420074423.GA22594@comp.chem.msu.su> References: <460AE39B.4070706@root.org> <86ps6g5759.fsf@dwp.des.no> <4617F563.40502@root.org> <200704181648.46348.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200704181648.46348.jhb@freebsd.org> User-Agent: Mutt/1.5.9i Cc: Dag-Erling Sm?rgrav , freebsd-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: Fri, 20 Apr 2007 08:09:59 -0000 On Wed, Apr 18, 2007 at 04:48:45PM -0400, John Baldwin wrote: > On Saturday 07 April 2007 15:47, Nate Lawson wrote: > > Dag-Erling Sm?rgrav wrote: > > > Nate Lawson writes: > > >> Obviously, it's easier to do nothing than something. So here are some > > >> options: > > >> > > >> 1. Add my patch -- if a server returns an error, I see no way it would > > >> have changed the PWD. If you say "CD GARBAGE", what reasonable system > > >> would return an error and change to some random dir? > > >> > > >> 2. Add an env variable (similar to FTP_PASSIVE_MODE, say > > >> "FTP_SINGLE_CWD") which forces the current behavior. If not set, fetch > > >> tries the multi-method first, falls back to the single-method on error. > > > > > > No. > > > > > > Thanks, > > > > > > DES > > > > I forgot: > > > > 3. #ifdef (on or off by default) > > > > Also, can I hear from anyone else besides Mr. No? > > I'm hestitant to make fetch explicitly not follow the RFC. At the least it > should follow the RFC by default. Having it not follow the RFC actually > broke stuff at work until I fixed it. I believe that the proposed feature should be conditional on the TVFS extension in the server (RFC 3659) as it indeed violates the basic FTP protocol. OTOH, TVFS seems to provide guarantees that a single CWD will work as expected. -- Yar