Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Mar 2000 11:11:30 -0600
From:      Oscar Bonilla <obonilla@fisicc-ufm.edu>
To:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc:        Oscar Bonilla <obonilla@fisicc-ufm.edu>, Martin Cracauer <cracauer@FreeBSD.org>, 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>
In-Reply-To: <200003081636.LAA06656@khavrinen.lcs.mit.edu>
References:  <200003081302.FAA18063@freefall.freebsd.org> <20000308092014.A75180@fisicc-ufm.edu> <200003081636.LAA06656@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 08, 2000 at 11:36:11AM -0500, Garrett Wollman wrote:
> <<On Wed, 8 Mar 2000 09:20:14 -0600, Oscar Bonilla <obonilla@fisicc-ufm.edu> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000309111130.A81944>