Re: [squid-users] Files > 2Gb on FTP sites via Squid

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 21 Feb 2005 23:53:32 +0100 (CET)

On Mon, 21 Feb 2005, davep wrote:

> Running Squid-2.5.STABLE4 (plus security patches, Mandrake 10.0
> distribution).
>
> When accessing an FTP site containing large files (typically DVD images) the
> file size is reported as negative. For example:

Indeed. The famous 2 GB barrier of 32-bit systems. (2^31-1 == 2GB - 1, +1
and it becomes -2GB)

> Is there any fix, or plans for one?

The goal is that Squid-3.0 will handle this right on 64-bit platforms or
when --enable-large-files is used on the supported 32-bit platforms, but
there still remains some cleanup to ensure file sizes are never type
casted to int either explicitly or implicitly by the compiler.

It is a lot more to it than only fixing the FTP directory listings. There
is very many assumptions in Squid that the object size in bytes fits
within one int (CPU default machine word, usually 32 bits).

Regards
Henrik
Received on Mon Feb 21 2005 - 15:53:34 MST

This archive was generated by hypermail pre-2.1.9 : Tue Mar 01 2005 - 12:00:02 MST