Quantcast
Channel: Serverphorums.com - HAProxy
Viewing all articles
Browse latest Browse all 11674

Re: Stickiness on req.payload fails

$
0
0
Hi,

On 09/24/2015 03:42 PM, Miloš Kozák wrote:
> I am getting this error:
>
> matching method 'found' cannot be used with fetch keyword 'req.payload'

Willy've just push a fix about that!

> In order to detect correct frame I do something like this do you think it is enough?
>
> acl px req.payload(0,4) -m bin FF00FF00
> acl rib req.payload(5,4) -m bin 00000000
>
> tcp-request content accept if px WAIT_END
> tcp-request inspect-delay 1s
>
> stick-table type binary len 4 size 50k expire 30m
> stick on req.payload(5,4) table protokolX if px !rib
>
> Presumably, I try to avoid stickiness on frames where ID is not set..
>
>

Willy've also fixed a bug related to payload and payload_lv.

I think you should replace the content rule:

tcp-request content accept if px !rib

because WAIT_END will force you to wait 1sec if px match.

R,
Emeric

Viewing all articles
Browse latest Browse all 11674

Trending Articles