Re: Bug when passing variable to mapping function

2018-06-28 Thread Jarno Huuskonen
Hi, On Thu, Jun 28, Jarno Huuskonen wrote: > I think this is the commit that breaks map_regm in this case: > b5997f740b21ebb197e10a0f2fe9dc13163e1772 (MAJOR: threads/map: Make > acls/maps thread safe). > > If I revert this commit from pattern.c:pattern_exec_match > then the map_regm \1 backref

reuse backend connections

2018-06-28 Thread Leela Kalidindi (lkalidin)
Hi, How can I enforce haproxy to reuse limited backend connections regardless of number of client connections? Basically I do not want to recreate backend connection for every front end client. "HAPROXY_0_BACKEND_HEAD": "\nbackend {backend}\n balance {balance}\n mode http\n option

Re: IPv6 : bug in unique-id-format and hex transormation

2018-06-28 Thread Willy Tarreau
Hi, On Thu, Jun 28, 2018 at 11:48:24AM +0200, m...@mildis.org wrote: > > Hi, > > When applying hex transform to an IPv6 in unique-id-format, the result is an > string full of zeros. unique-id-format %{+X}o\ > %ci:%cp_%fi:%fp_%Ts_%rt:%pid":D142_:01BB_5B348110_:0FC3" > When

Re: Segfault on haproxy 1.7.10 with state file and slowstart

2018-06-28 Thread Willy Tarreau
Hi Raghu, On Thu, Jun 28, 2018 at 02:46:36PM +0530, Raghu Udiyar wrote: > Hi Willy, Baptiste > > I have been running this in production without any issues. Can you please > review, verified that this will apply on current devel as well. Thanks, however while looking if we had already merged it

Re: Bug when passing variable to mapping function

2018-06-28 Thread Jarno Huuskonen
Hi, On Mon, Jun 25, Daniel Schneller wrote: > This is the contents of the map file: > hostmap.txt - > ^(.*)\.(.*)$ \1 > -- Setting this to: ^(.*)\.(.*)$ \2 And I get X-Distri-Mapped-From-Var: com and with map_regm: ^(.*)\.(.*)\.(.*)$ \2.\3 (Host:

IPv6 : bug in unique-id-format and hex transormation

2018-06-28 Thread me
Hi, When applying hex transform to an IPv6 in unique-id-format, the result is an string full of zeros. unique-id-format %{+X}o\ %ci:%cp_%fi:%fp_%Ts_%rt:%pid":D142_:01BB_5B348110_:0FC3" When hex transform is disabled, the IPv6 is printed. Here is a patch that only applies

Re: Segfault on haproxy 1.7.10 with state file and slowstart

2018-06-28 Thread Raghu Udiyar
Hi Willy, Baptiste I have been running this in production without any issues. Can you please review, verified that this will apply on current devel as well. On Fri, 6 Apr 2018 at 22:36 Willy Tarreau wrote: > Hi Raghu, > > On Wed, Mar 28, 2018 at 08:30:39PM +, Raghu Udiyar wrote: > > Hi