Re: consistently hash cookie to a header

2018-06-08 Thread Baptiste
On Fri, Jun 8, 2018 at 10:15 PM, Mike Torra wrote: > Hi - > > I am relatively new to using haproxy, and I am trying to figure out if it > is possible to use a consistent hashing algorithm to hash a cookie value in > to a separate header. This seems very similar to how you would use a > consistent

consistently hash cookie to a header

2018-06-08 Thread Mike Torra
Hi - I am relatively new to using haproxy, and I am trying to figure out if it is possible to use a consistent hashing algorithm to hash a cookie value in to a separate header. This seems very similar to how you would use a consistent `hash-type` ( http://cbonte.github.io/haproxy-dconv/1.8/configu

Re: [Patch] Lua / Increase error verbosity

2018-06-08 Thread Thierry Fournier
> On 8 Jun 2018, at 18:21, Willy Tarreau wrote: > > On Fri, Jun 08, 2018 at 01:09:04PM +0200, Thierry Fournier wrote: >> Hi, >> >> runtime errors doesn't provides the error line, in particular the memory >> error (out of memory) >> >> Please find a Lua patch in attachment. >> It provides ba

Re: remaining process after (seamless) reload

2018-06-08 Thread Willy Tarreau
On Fri, Jun 08, 2018 at 06:22:39PM +0200, William Dauchy wrote: > On Fri, Jun 08, 2018 at 04:31:30PM +0200, William Lallemand wrote: > > That's great news! > > > > Here's the new patches. It shouldn't change anything to the fix, it only > > changes the sigprocmask to pthread_sigmask. > > thanks, I

Re: remaining process after (seamless) reload

2018-06-08 Thread William Dauchy
On Fri, Jun 08, 2018 at 04:31:30PM +0200, William Lallemand wrote: > That's great news! > > Here's the new patches. It shouldn't change anything to the fix, it only > changes the sigprocmask to pthread_sigmask. thanks, I attached the backport for 1.8 and started a new test with them. Feel free to

Re: [Patch] Lua / Increase error verbosity

2018-06-08 Thread Willy Tarreau
On Fri, Jun 08, 2018 at 01:09:04PM +0200, Thierry Fournier wrote: > Hi, > > runtime errors doesn't provides the error line, in particular the memory > error (out of memory) > > Please find a Lua patch in attachment. > It provides backtrace condensed in one line. Indeed it's much better. Given t

Re: remaining process after (seamless) reload

2018-06-08 Thread William Lallemand
On Fri, Jun 08, 2018 at 06:20:21PM +0200, Willy Tarreau wrote: > On Fri, Jun 08, 2018 at 04:31:30PM +0200, William Lallemand wrote: > > That's great news! > > > > Here's the new patches. It shouldn't change anything to the fix, it only > > changes the sigprocmask to pthread_sigmask. > > OK, I ca

Re: remaining process after (seamless) reload

2018-06-08 Thread Willy Tarreau
On Fri, Jun 08, 2018 at 04:31:30PM +0200, William Lallemand wrote: > That's great news! > > Here's the new patches. It shouldn't change anything to the fix, it only > changes the sigprocmask to pthread_sigmask. OK, I can merge them right now if you want. At the very least it will kill a whole cl

Re: remaining process after (seamless) reload

2018-06-08 Thread William Lallemand
On Fri, Jun 08, 2018 at 02:10:44PM +0200, William Dauchy wrote: > On Thu, Jun 07, 2018 at 11:50:45AM +0200, William Lallemand wrote: > > Sorry for the late reply, I manage to reproduce and fix what seams to be > > the bug. > > The signal management was not handled correctly with threads. > > Could

Re: remaining process after (seamless) reload

2018-06-08 Thread William Dauchy
Hello William L., On Thu, Jun 07, 2018 at 11:50:45AM +0200, William Lallemand wrote: > Sorry for the late reply, I manage to reproduce and fix what seams to be the > bug. > The signal management was not handled correctly with threads. > Could you try those patches and see if it fixes the problem?

Re: Connections stuck in CLOSE_WAIT state with h2

2018-06-08 Thread Milan Petruželka
On Wed, 6 Jun 2018 at 11:20, Willy Tarreau wrote: > Hi Milan, > > On Wed, Jun 06, 2018 at 11:09:19AM +0200, Milan Petruzelka wrote: > > Hi Willy, > > > > I've tracked one of connections hanging in CLOSE_WAIT state with tcpdump > > over last night. It started at 17:19 like this: > > > > "Packe

[Patch] Lua / Increase error verbosity

2018-06-08 Thread Thierry Fournier
Hi, runtime errors doesn’t provides the error line, in particular the memory error (out of memory) Please find a Lua patch in attachment. It provides backtrace condensed in one line. Thierry 0001-MINOR-lua-Increase-debug-information.patch Description: Binary data

Re: remaining process after (seamless) reload

2018-06-08 Thread William Lallemand
On Thu, Jun 07, 2018 at 12:02:46PM +0200, Willy Tarreau wrote: > On Thu, Jun 07, 2018 at 11:50:45AM +0200, William Lallemand wrote: > > /* block signal delivery during processing */ > > +#ifdef USE_THREAD > > + pthread_sigmask(SIG_SETMASK, &blocked_sig, &old_sig); > > +#else > > sigprocma