Re: Puzzlement : empty field vs. ,field() -m

2023-04-17 Thread Jim Freeman
Aleksandar - thanks for the feedback ! (haproxy -vv : attached) I'd spent a good long while scouring the config docs (and Google) seeking enlightenment, but ... No joy using either of '! -m found -m int 0' or '! -m found'. Here's hoping someone/anyone else has experience making an empty field()

Re: Puzzlement : empty field vs. ,field() -m

2023-04-17 Thread Aleksandar Lazic
Hi. On 18.04.23 00:55, Jim Freeman wrote: In splitting out fields from req.cook, populated fields work well, but detecting an unset field has me befuddled: acl COOK_META_MISSING req.cook(cook2hdr),field(3,\#) ! -m found -m str '' does not detect that a cookie/field is empty ? Running the

Puzzlement : empty field vs. ,field() -m

2023-04-17 Thread Jim Freeman
In splitting out fields from req.cook, populated fields work well, but detecting an unset field has me befuddled: acl COOK_META_MISSING req.cook(cook2hdr),field(3,\#) ! -m found -m str '' does not detect that a cookie/field is empty ? Running the attached 'hdrs' script against the attached

Re: Problems using custom error files with HTTP/2

2023-04-17 Thread Aleksandar Lazic
On 17.04.23 15:08, Willy Tarreau wrote: On Mon, Apr 17, 2023 at 03:04:05PM +0200, Lukas Tribus wrote: On Sat, 15 Apr 2023 at 23:08, Willy Tarreau wrote: On Sat, Apr 15, 2023 at 10:59:42PM +0200, Willy Tarreau wrote: Hi Nick, On Sat, Apr 15, 2023 at 09:44:32PM +0100, Nick Wood wrote:

Re: Problems using custom error files with HTTP/2

2023-04-17 Thread Willy Tarreau
On Mon, Apr 17, 2023 at 03:04:05PM +0200, Lukas Tribus wrote: > On Sat, 15 Apr 2023 at 23:08, Willy Tarreau wrote: > > > > On Sat, Apr 15, 2023 at 10:59:42PM +0200, Willy Tarreau wrote: > > > Hi Nick, > > > > > > On Sat, Apr 15, 2023 at 09:44:32PM +0100, Nick Wood wrote: > > > > And here is my

Re: Problems using custom error files with HTTP/2

2023-04-17 Thread Lukas Tribus
On Sat, 15 Apr 2023 at 23:08, Willy Tarreau wrote: > > On Sat, Apr 15, 2023 at 10:59:42PM +0200, Willy Tarreau wrote: > > Hi Nick, > > > > On Sat, Apr 15, 2023 at 09:44:32PM +0100, Nick Wood wrote: > > > And here is my configuration - I've slimmed it down to the absolute > > > minimum > > > to

Re: Problems using custom error files with HTTP/2

2023-04-17 Thread Nick Wood
Hi Willy, On 15/04/2023 22:08, Willy Tarreau wrote: And indeed, this issue appeared with this commit in 1.9-dev10 4 years ago: 746fb772f ("MEDIUM: mux_h2: Always set CS_FL_NOT_FIRST for new conn_streams.") So it makes h2 behave like the second and more H1 requests which are silent about