On 09 Feb 2018, at 7:12 AM, William A Rowe Jr <wr...@rowe-clan.net> wrote: [Why] would you compare 8192 byte strings as identifiers? I just checked the code, and as I suspected the “name” field isn’t a name, or an identifier, it’s actually a URL prefix. When a balancer is found to match, the “balancer:foo” is removed, and replaced by the name, with the rest of the URL postfixed to it. As you can see - we’re currently arbitrarily limiting the length of the URL prefix to 256 characters, because 640k is big enough for everybody.
Another option for the name is to store a URL prefix length and a hash of the prefix. If the hash of the prefix matches, we have a match. Would this work, would it be too expensive to hash on every hit, would it be safe enough? For the hostname, the field only has to be 256 characters long (because RFC1035 says it must be) and that’s manageable. I have created a patch to do this and it works for me. Regards, Graham — |
- Re: BalancerMember and RFC1035 compliance - BalancerMemb... William A Rowe Jr
- Re: BalancerMember and RFC1035 compliance - BalancerMemb... Jim Jagielski
- Re: BalancerMember and RFC1035 compliance - BalancerMemb... Graham Leggett
- Re: BalancerMember and RFC1035 compliance - BalancerMemb... William A Rowe Jr
- Re: BalancerMember and RFC1035 compliance - BalancerMemb... Graham Leggett
- Re: BalancerMember and RFC1035 compliance - BalancerMemb... William A Rowe Jr
- Re: BalancerMember and RFC1035 compliance - BalancerMemb... Graham Leggett
- Re: BalancerMember and RFC1035 compliance - BalancerMemb... Jim Jagielski
- Re: BalancerMember and RFC1035 compliance - BalancerMemb... William A Rowe Jr
- Re: BalancerMember and RFC1035 compliance - BalancerMemb... William A Rowe Jr
- Re: BalancerMember and RFC1035 compliance - BalancerMemb... Graham Leggett
- Re: BalancerMember and RFC1035 compliance - BalancerMemb... William A Rowe Jr
- Re: BalancerMember and RFC1035 compliance - BalancerMemb... Yann Ylavic
- Re: BalancerMember and RFC1035 compliance - BalancerMemb... William A Rowe Jr
- Re: BalancerMember and RFC1035 compliance - BalancerMemb... Yann Ylavic
- Re: BalancerMember and RFC1035 compliance - BalancerMemb... Jim Jagielski
- Re: BalancerMember and RFC1035 compliance - BalancerMemb... Graham Leggett
- 2.6/3.0 yet again... Jim Jagielski
- Re: 2.6/3.0 yet again... Stefan Eissing
- Re: BalancerMember and RFC1035 compliance - BalancerMemb... Ruediger Pluem
- Re: BalancerMember and RFC1035 compliance - BalancerMemb... Yann Ylavic