From owner-cvs-all Thu Mar 9 9:11:55 2000 Delivered-To: cvs-all@freebsd.org Received: from voyager.fisicc-ufm.edu (ip-198-202.guate.net [209.198.197.202]) by hub.freebsd.org (Postfix) with ESMTP id 7B79437B6C8; Thu, 9 Mar 2000 09:11:49 -0800 (PST) (envelope-from obonilla@voyager.fisicc-ufm.edu) Received: (from obonilla@localhost) by voyager.fisicc-ufm.edu (8.9.3/8.9.3) id LAA81962; Thu, 9 Mar 2000 11:11:30 -0600 (CST) (envelope-from obonilla) Date: Thu, 9 Mar 2000 11:11:30 -0600 From: Oscar Bonilla To: Garrett Wollman Cc: Oscar Bonilla , Martin Cracauer , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/fetch fetch.h ftp.c http.c main.c Message-ID: <20000309111130.A81944@fisicc-ufm.edu> References: <200003081302.FAA18063@freefall.freebsd.org> <20000308092014.A75180@fisicc-ufm.edu> <200003081636.LAA06656@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre1i In-Reply-To: <200003081636.LAA06656@khavrinen.lcs.mit.edu> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Mar 08, 2000 at 11:36:11AM -0500, Garrett Wollman wrote: > < said: > > > could we add a retry flag that keeps trying until the downloaded > > file has the same size as announced by the server? it'd be really > > useful for very lossy channels. > > while ! fetch ${FETCH_ARGS}; do > sleep 60 > done > duh! you're right... this didn't work because fetch would return 0 even though it hadn't downloaded the whole file, but this commit fixes that. I don't think the retry flag is necesary then, it would only bloat the code. regards, -oscar -- pgp public key: finger obonilla@fisicc-ufm.edu pgp fingerprint: 6D 18 8C 90 4C DF F0 4B DF 35 1F 69 A1 33 C7 BC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message