[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#79878: No size in HTTP response causes Size mismatch error



On Mon, 18 Dec 2000, Stephen Rothwell wrote:

> When apt-proxy cannot determine the size of a .deb file from
> the Packages file (which is basically impossible now that we
> have the pools), it responds to apt-get with a HTTP header
> that specifies no size and reverts to Connect: close.

I fixed this just yesterday in APT 4 - the correct thing to do is have the
HTTP method report the final size when the transfer encoding is closes.

You can check that fix if you like from APT CVS in the aliencode branch,
or from the debs at 

deb http://klecker.debian.org/~jgg apt/

It is extremely unwise to not report a size. If you absolutely cannot (and
I don't see why not..) then you should use HTTP/1.1 chunked transfer
encoding. This will permit proper error recovery. 

Jason



Reply to: