[squid-users] ftp receive buffer size?

From: Copland <copland@dont-contact.us>
Date: Tue, 23 Sep 2003 01:54:19 +0300

Hello.
I'm running squid as ftp-accelerator (no caching, only tunneling ftp over
http), and as I can see in logs, squid reads file from ftp by blocks, and
each block is quite big (250-450 KB), so if I request only beginning (10-20
KB) of some file, squid will take from ftp-server much more data, and in my
case it's a problem. This is how it appears in ftpd-log:

10:14:27 4 123.213.123.123 278528 /ftpd/file.zip b _ o r username group 0 *
10:15:11 3 123.213.123.123 278528 /ftpd/file.zip b _ o r username group 0 *
10:16:44 4 123.213.123.123 278528 /ftpd/file.zip b _ o r username group 0 *
10:17:24 6 123.213.123.123 278528 /ftpd/file.zip b _ o r username group 0 *
10:46:35 4 123.213.123.123 278528 /ftpd/file.zip b _ o r username group 0 *

278528 -- that block size, always constant at the beginning. In this sample
i've taken only ~100 KB of file.zip (resumed it 5 times), but squid took
278528 x 5 = 1392640 bytes, file.zip itself is like 6 MB. I couldn't find
any related setting to this feature, can anyone give a clue please?
Thanx in advance.
Received on Mon Sep 22 2003 - 16:04:55 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:20:00 MST