Re: [PATCH] Service Overload Handling (ICAP Max-Connections)

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 11 May 2011 21:33:53 +1200

On 11/05/11 21:00, Tsantilas Christos wrote:
> On 05/10/2011 03:44 AM, Amos Jeffries wrote:
>>>
>>> Maybe we can use
>>> if (!Ip::EnableIpv6 || Ip::EnableIpv6&IPV6_SPECIAL_SPLITSTACK &&
>>> !cfg().ipv6))
>>
>> No need. There are four stacks:
>> IPv4-only
>> Split (Classical Dual)
>> Hybrid (Extended Dual)
>> IPv6-only
>>
>> When !Ip::EnableIpv6 the default anyAddr is made IPv4-only. For the
>
> Looking the ip/Address.cc code I think this is not true. The default
> localhost address is IPv4-only but for the anyAddr the family (AF_INET
> or AF_INET6) is unspecified.
>

Grr, optimization hell. Three made with the side effect that a large
memcpy from v4_anyaddr is no longer done on construct, SetEmpty(),
SetIPv4(), or GetAddrInfo().

Okay you were right.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.12
   Beta testers wanted for 3.2.0.7 and 3.1.12.1
Received on Wed May 11 2011 - 09:34:00 MDT

This archive was generated by hypermail 2.2.0 : Wed May 11 2011 - 12:00:04 MDT