Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Feb 2004 09:35:27 -0800
From:      Tim Kientzle <kientzle@acm.org>
To:        Dag-Erling Smorgrav <des@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libfetch http.c
Message-ID:  <402A67DF.5030609@acm.org>
In-Reply-To: <20040211141010.04cc322f@it.buh.cameradicommercio.ro>
References:  <200402110931.i1B9VeE9055525@repoman.freebsd.org> <20040211141010.04cc322f@it.buh.cameradicommercio.ro>

next in thread | previous in thread | raw e-mail | index | archive | help
>des         2004/02/11 01:31:40 PST
>
>  FreeBSD src repository
>
>  Modified files:
>    lib/libfetch         http.c 
>  Log:
>  When restarting a transfer that has already completed, the server will
>  reply with a 416 error code (requested range not satisfiable) because
>  we ask it to start at the end of the file.  Handle this gracefully by
>  considering a 416 reply a success if the requested offset exactly
>  matches the length of the file and the requested length is zero.


Good work!  I've been bitten by this once or twice myself
but never dug far enough to figure it out.

Tim



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