From owner-freebsd-current Fri Oct 25 13: 1: 6 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E75D537B404 for ; Fri, 25 Oct 2002 13:01:04 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 8F8B543E42 for ; Fri, 25 Oct 2002 13:01:00 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 73396 invoked by uid 1000); 25 Oct 2002 20:01:00 -0000 Date: Fri, 25 Oct 2002 13:01:00 -0700 (PDT) From: Nate Lawson To: current@freebsd.org Cc: des@freebsd.org Subject: Re: Coredump from pkg_add + analysis In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 24 Sep 2002, Nate Lawson wrote: > There's a bit of a layering problem with the ftp/fetch semantics. > _fetch_close() is used to shutdown the connection (and handles reference > counting but the connection caching is done at the ftp layer. Either the > connection cache should be moved to the fetch layer so open/close can deal > with it properly (better) or the ftp layer needs to check for a ref count > of 1 and invalidate the cache before closing it (worse). > > A lot of people would really really appreciate it if someone would choose > an approach and fix this. > > -Nate I committed the second approach in rev 1.83 of ftp.c. -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message