Re: delay pools

From: David Luyer <luyer@dont-contact.us>
Date: Thu, 29 Oct 1998 12:06:42 +0800

>
> hi!
>
> can i setup squid so that only connections between squid and
> servers/parents are delayed and connections between squid and clients are
> not? so if the object is already in cache then it's served at full speed.

It's always like you want - already cached objects are never delayed and you
can choose if particular peers are subject to delay. The controls are on the
data coming into the cache, but the speed is determined by the client.

This is starting to look like it should be in the FAQ.

> i looked at the sources and got the impression that delay pools affect the
> client connections too (or only the client connections?)

Wrong.

David.

PS: There's a serious bug in class2 delay pools, a simple typo quite obvious
in delay.c. In one 'class == 2' section it decrements a class3 delay pool.
Thanks to Gregor Kowalewski for picking it up. The fix is obvious;

    if (class == 2) {
        delay_data.class2_aggregate -= qty;
        delay_data.class3_individual[position] -= qty;
        return;
    }

in delayBytesIn() should be:

    if (class == 2) {
        delay_data.class2_aggregate -= qty;
        delay_data.class2_individual[position] -= qty;
        return;
    }
Received on Wed Oct 28 1998 - 20:53:51 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:42:50 MST