Re: multithreading issuse in haproxy 1.8.5

2018-04-23 Thread Willy Tarreau
On Mon, Apr 23, 2018 at 09:41:18PM +0300, Slawa Olhovchenkov wrote: > On Mon, Apr 23, 2018 at 08:32:39PM +0200, Willy Tarreau wrote: > > > On Mon, Apr 23, 2018 at 06:36:29PM +0300, Slawa Olhovchenkov wrote: > > > On Sat, Apr 21, 2018 at 04:38:48PM +0300, Slawa Olhovchenkov wrote: > > > > > > > On

1.9dev LUA core.tcp() cannot be used from different threads

2018-04-23 Thread PiBa-NL
Hi List, Thierry (LUA maintainer), Christopher (Multi-Threading), When im making a tcp connection to a (mail) server from a lua task this error pops up randomly when using 'nbthread 4', the error luckily seems pretty self explanatory, but ill leave that to the threading and lua experts to come

1.9dev LUA register_task to function that ends performs a core dump..

2018-04-23 Thread PiBa-NL
Hi List, Thierry, Below script makes haproxy perform a coredump when a function that doesnt loop forever is put into register_task.. is it possible to add some safety checks around such calls.?. The coredump does not seem to contain any useful info when read by gdb.. unkown functions at unko

1.9dev LUA shows partial results from print_r(core.get_info()) after adding headers ?

2018-04-23 Thread PiBa-NL
Hi List, Thierry, The second print_r(core.get_info()) only shows 'some' of its results and the final message never shows.. Is there some memory buffer overflow bug in there.? Possibly caused by the 'add_header' calls.. as removing those seems to fix the behaviour of the CORE2 print_r call..

Re: multithreading issuse in haproxy 1.8.5

2018-04-23 Thread Slawa Olhovchenkov
On Mon, Apr 23, 2018 at 08:32:39PM +0200, Willy Tarreau wrote: > On Mon, Apr 23, 2018 at 06:36:29PM +0300, Slawa Olhovchenkov wrote: > > On Sat, Apr 21, 2018 at 04:38:48PM +0300, Slawa Olhovchenkov wrote: > > > > > On Fri, Apr 20, 2018 at 03:55:25PM +0200, Willy Tarreau wrote: > > > > > > > Thus

Re: multithreading issuse in haproxy 1.8.5

2018-04-23 Thread Willy Tarreau
On Mon, Apr 23, 2018 at 06:36:29PM +0300, Slawa Olhovchenkov wrote: > On Sat, Apr 21, 2018 at 04:38:48PM +0300, Slawa Olhovchenkov wrote: > > > On Fri, Apr 20, 2018 at 03:55:25PM +0200, Willy Tarreau wrote: > > > > > Thus for you it's better to stick to a single listener, and if you want to > > >

RE: Use SNI with healthchecks

2018-04-23 Thread GALLISSOT VINCENT
Thank you very much for your answers, I'll migrate to 1.8 asap to fix this. Vincent De : lu...@ltri.eu de la part de Lukas Tribus Envoyé : lundi 23 avril 2018 17:18 À : GALLISSOT VINCENT Cc : haproxy@formilux.org Objet : Re: Use SNI with healthchecks Hello V

Re: Use SNI with healthchecks

2018-04-23 Thread Lukas Tribus
Hello Vincent, On 23 April 2018 at 16:38, GALLISSOT VINCENT wrote: > Does anybody know how can I use healthchecks over HTTPS with SNI support ? You need haproxy 1.8 for this, it contains the check-sni directive which allows to set SNI to a specific string for the health check: http://cbonte.gi

Re: Use SNI with healthchecks

2018-04-23 Thread Jerome Magnin
Hi Vincent, On Mon, Apr 23, 2018 at 02:38:32PM +, GALLISSOT VINCENT wrote: > Hi all, > > > I want to use SNI with httpchk on HAProxy 1.7.10 to connect to CloudFront > distributions as backend servers. > > I saw in this mailing-list archives that SNI is not used by default even when > usi

Use SNI with healthchecks

2018-04-23 Thread GALLISSOT VINCENT
Hi all, I want to use SNI with httpchk on HAProxy 1.7.10 to connect to CloudFront distributions as backend servers. I saw in this mailing-list archives that SNI is not used by default even when using the ssl directive. We don't pay for SNI on that distribution, that means CloudFront doesn't

Re: [PATCH] MEDIUM: cli: Add multi-line mode support

2018-04-23 Thread Aurélien Nephtali
Hello Willy, On Fri, Apr 20, 2018 at 05:12:22PM +0200, Willy Tarreau wrote: > Hi Aurélien, > > It seems to me that some places in the parser look for "<<" anywhere on the > line (mainly the strstr() which even skips trailing spaces/tabs), and some > parts of the logic only expect it at the end. >