Hi Milos, On 09/24/2015 09:16 AM, Miloš Kozák wrote: > I did try even that.. > > Interesting thing happens when I set tcp-inspect delay to 10s, my stickiness > rule appears after 30s. The problem is it takes very much of time, and the > stickiness then actually does not work, i.e., I can see that every further > response goes from different server. Also, the stickiness rule does not > appear everytime, only exceptionally.. > > My stickiness rules goes from first packet hence only a few ms should be OK, > but it does not work with such a short time at all.. > > > Milos
tcp-inspect is not enought, you must use also use a tcp-request content rule to force haproxy to wait for data. Something like that: acl ID req.payload(4,5) -m found tcp-request inspect-delay 5s tcp-request content accept if ID stick on req.payload(4,5) if ID R, Emeric

