Ah brilliant !!!!! I was investigating an issue where the table synchronization only synchronise 24 characters between 2 HAProxy hosts... I guess this fix also fix my bug ;)
Baptiste On Fri, Apr 12, 2013 at 12:54 AM, Willy Tarreau <w...@1wt.eu> wrote: > On Thu, Apr 11, 2013 at 03:44:33PM -0700, Will Glass-Husain wrote: >> That's terrific. Thanks for the quick response. Does that work for the >> full 40 character string, or do I need to keep it under 20? > > you don't have any limit anymore, it just supports the same size as you > declared in the stick table. That's why the patch is big, it changes the > memory allocation method to first allocate then write into the allocated > area instead of the pas method which performed a copy. > >> I was thinking that I could prehash to a smaller size if necessary, since >> colliding hash buckets are fine. But it's nice that haproxy now handles >> it, particularly since various blogs on the net recommend using the 32 char >> Apache Tomcat jsessionid when HAProxy is used in front of Tomcat. > > Then you don't need to hash anymore :-) > > Cheers, > Willy > >