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

2018-04-17 Thread Willy Tarreau
Hi Aurélien, On Tue, Apr 17, 2018 at 09:06:35PM +0200, Aurélien Nephtali wrote: > Example: > If this command is entered: > set server bk/fe << > state ready > > Three arguments and a payload will be tagged. This command requires (in > some cases) seven arguments (including the keywords)

Re: 1.8.7 http-tunnel doesn't seem to work? (but default http-keep-alive does)

2018-04-17 Thread Willy Tarreau
On Tue, Apr 17, 2018 at 11:47:18PM +0200, PiBa-NL wrote: > Op 17-4-2018 om 17:46 schreef Willy Tarreau: > > On Tue, Apr 17, 2018 at 04:33:07PM +0200, Olivier Houchard wrote: > > > After talking with Willy, here is an updated patch that does that. > > > That way, the day we'll want to use

Re: 1.8.7 http-tunnel doesn't seem to work? (but default http-keep-alive does)

2018-04-17 Thread PiBa-NL
Op 17-4-2018 om 17:46 schreef Willy Tarreau: On Tue, Apr 17, 2018 at 04:33:07PM +0200, Olivier Houchard wrote: After talking with Willy, here is an updated patch that does that. That way, the day we'll want to use EV_ONESHOT, we'll be ready, and won't miss any event. Now merged, thanks guys!

Re: Version 1.5.12, getting 502 when server check fails, but server is still working

2018-04-17 Thread Shawn Heisey
On 4/17/2018 2:54 PM, Lukas Tribus wrote: >> Originally, the "hollywood" entry on the be-cdn-9000 backend (which you can >> see at the config I linked above) had the backup keyword. But what I >> noticed happening was that when planet went down, it took about ten >> additional seconds (no precise

Re: Version 1.5.12, getting 502 when server check fails, but server is still working

2018-04-17 Thread Lukas Tribus
Hello Shawn, On 17 April 2018 at 15:24, Shawn Heisey wrote: >>> I described that issue in a separate message to the >>> list. I do have a workaround to that issue -- I'm no longer using >>> "backup" on any server entries for this service. >> >> Then I don't see how it

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

2018-04-17 Thread Aurélien Nephtali
Hello, Here is another attempt to add multi-lines support to the CLI. To enter a multi-lines command, a special pattern (<<) has to be used at the end of the first line. Once in this mode, everything else is gathered as it and the command is considered terminated on the reception of an empty

Re: Question regarding haproxy backend behaviour

2018-04-17 Thread Moemen MHEDHBI
Hi On 16/04/2018 12:04, Igor Cicimov wrote: > > > On Mon, 16 Apr 2018 6:09 pm Ayush Goyal > wrote: > > Hi Moemen, > > Thanks for your response. But I think I need to clarify a few > things here.  > > On Mon, Apr 16, 2018 at 4:33

Re: 1.8.7 http-tunnel doesn't seem to work? (but default http-keep-alive does)

2018-04-17 Thread Willy Tarreau
On Tue, Apr 17, 2018 at 04:33:07PM +0200, Olivier Houchard wrote: > After talking with Willy, here is an updated patch that does that. > That way, the day we'll want to use EV_ONESHOT, we'll be ready, and won't > miss any event. Now merged, thanks guys! Willy

Re: 1.8.7 http-tunnel doesn't seem to work? (but default http-keep-alive does)

2018-04-17 Thread Olivier Houchard
Hi again, On Tue, Apr 17, 2018 at 01:07:49PM +0200, Olivier Houchard wrote: [...] > We only need one to prevent kevent() from trying to scanning the kqueue, so > only setting kev[0] should be enough. It's inside an #ifdef because > EV_RECEIPT was only implemented recently in OpenBSD, so all users

Re: Haproxy 1.8 with OpenSSL 1.1.1-pre4 stops working after 1 hour

2018-04-17 Thread Lukas Tribus
Hello Sander, On 16 April 2018 at 10:55, Sander Hoentjen wrote: > Reading my email again it looks like somehow I messed up part of it, > retrying: > > Hi all, > > I built Haproxy (1.8.7) against openssl 1.1.1-pre4, and now after 1 hour > running haproxy stops accepting new

Re: resolvers - resolv.conf fallback

2018-04-17 Thread Ben Draut
Yep, will do. On Tue, Apr 17, 2018 at 8:04 AM, Baptiste wrote: > > On Sat, Apr 14, 2018 at 5:39 AM, Jonathan Matthews < > cont...@jpluscplusm.com> wrote: > >> On 14 April 2018 at 05:13, Willy Tarreau wrote: >> > On Fri, Apr 13, 2018 at 03:48:19PM -0600, Ben Draut

Re: resolvers - resolv.conf fallback

2018-04-17 Thread Baptiste
On Sat, Apr 14, 2018 at 5:39 AM, Jonathan Matthews wrote: > On 14 April 2018 at 05:13, Willy Tarreau wrote: > > On Fri, Apr 13, 2018 at 03:48:19PM -0600, Ben Draut wrote: > >> How about 'parse-resolv-conf' for the current feature, and we reserve > >>

Re: DNS resolver and mixed case responses

2018-04-17 Thread Baptiste
Hi all, Thanks a lot for your various investigations! As a conclusion, HAProxy's behavior is "as expected". Baptiste

Re: SSL/TLS support for peers

2018-04-17 Thread Frederic Lecaille
On 04/11/2018 03:10 PM, Frederic Lecaille wrote: Hello ML, This is a first patch attempt to add the SSL/TLS support to peers. So, after having discussed about this feature in private here is a more complete patch to support SSL/TLS over peer protocol. Regards, Fred. >From

Re: Version 1.5.12, getting 502 when server check fails, but server is still working

2018-04-17 Thread Shawn Heisey
On 4/17/2018 3:41 AM, Willy Tarreau wrote: Here I'm afraid we're all wasting a lot of time trying to guess what you have in your config that causes the problem. It's OK if you cannot post your config here, but please at least post a smaller one reproducing the issue so that we can help you. I

cfgparse: multiline parsing

2018-04-17 Thread Frederic Lecaille
Hello ML, Here is a simple patch to support the multiline parsing. Regards, Fred. >From 6ab05b5c9bb8f0a644652ba58376b21ccf800f4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 17 Apr 2018 10:54:08 +0200 Subject: [PATCH] MINOR:

Re: 1.8.7 http-tunnel doesn't seem to work? (but default http-keep-alive does)

2018-04-17 Thread Olivier Houchard
Hi Pieter, On Mon, Apr 16, 2018 at 10:41:48PM +0200, PiBa-NL wrote: > Hi Olivier, > > Op 16-4-2018 om 17:09 schreef Olivier Houchard: > > After some discussion with Willy, we came with a solution that may fix your > > problem with kqueue. > > Can you test the attached patch and let me know if it

Re: Version 1.5.12, getting 502 when server check fails, but server is still working

2018-04-17 Thread Willy Tarreau
On Mon, Apr 16, 2018 at 04:13:28PM -0600, Shawn Heisey wrote: > [ALERT] 105/095234 (7186) : config : backend 'be-cdn-9000', server > 'planet': unable to use chk-cdn-9000/planet fortracking: disable-on-404 > option inconsistency. > [ALERT] 105/095234 (7186) : config : backend 'be-cdn-9000', server

Re: [External] Re: [PATCH] MEDIUM: sample: Extend functionality for field/word converters

2018-04-17 Thread Marcin Deranek
On 04/17/2018 11:29 AM, Willy Tarreau wrote: > Pretty cool, thank you. I've already missed this for domain names (using > the dot as the delimitor). Now merged :-) Cool. We missed this functionality too, so eventually I invested some time to get it done :-)) Marcin Deranek

Re: [PATCH] MEDIUM: sample: Extend functionality for field/word converters

2018-04-17 Thread Willy Tarreau
Hi Marcin, On Tue, Apr 17, 2018 at 11:12:54AM +0200, Marcin Deranek wrote: > Hi, > > This patch extends functionality of field/word converters, so it's > possible to count fields/words from the beginning/end of the string and > extract multiple fields/words if needed. Change is backward

[PATCH] MEDIUM: sample: Extend functionality for field/word converters

2018-04-17 Thread Marcin Deranek
Hi, This patch extends functionality of field/word converters, so it's possible to count fields/words from the beginning/end of the string and extract multiple fields/words if needed. Change is backward compatible and should cleanly apply to both 1.8 & 1.9 branches. Regards, Marcin Deranek