Re: [PATCH] CLEANUP: Use the ist() macro whenever possible

2021-03-04 Thread Willy Tarreau
Both cleanups applied, thank you Tim! Willy

[PATCH] CLEANUP: Replace for loop with only a condition by while

2021-03-04 Thread Tim Duesterhus
Refactoring performed with the following Coccinelle patch: @@ expression e; statement S; @@ - for (;e;) + while (e) S --- src/h2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/h2.c b/src/h2.c index 84aa660b7..9ff3c938e 100644 ---

Re: [2.2.9] 100% CPU usage

2021-03-04 Thread Christopher Faulet
Le 04/03/2021 à 14:01, Maciej Zdeb a écrit : Hi, Sometimes after HAProxy reload it starts to loop infinitely, for example 9 of 10 threads using 100% CPU (gdb sessions attached). I've also dumped the core file from gdb. Hi Maciej, The 2.2.1O is out. But I'm afraid that a fix is missing.

Re: Logging down output from the a Lua script

2021-03-04 Thread Mihaly Zachar
On Thu, 4 Mar 2021 at 13:49, Adis Nezirovic wrote: > On 3/4/21 1:39 PM, Mihaly Zachar wrote: > > Dear Adis, > > > > Thank you very much for the prompt answer. It looks promising. > > Yes, I do have the TXN object available. > > > > Currently I am checking the doc here: > >

curious regarding SO_INCOMING_CPU

2021-03-04 Thread Илья Шипицин
Hello, did anybody investigated benefits of SO_INCOMING_CPU ? (just curious) Ilya

[PATCH] fix some typo

2021-03-04 Thread Илья Шипицин
Hello, another round of typo cleanup Ilya From a63c4b2373fd7fff2a02e57c79e2e2c85513ae00 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Thu, 4 Mar 2021 23:26:15 +0500 Subject: [PATCH] CLEANUP: assorted typo fixes in the code and comments This is 19th iteration of typo fixes ---

[PATCH] CLEANUP: Use the ist() macro whenever possible

2021-03-04 Thread Tim Duesterhus
Refactoring performed with the following Coccinelle patch: @@ char *s; @@ ( - ist2(s, strlen(s)) + ist(s) | - ist2(strdup(s), strlen(s)) + ist(strdup(s)) ) Note that this replacement is safe even in the strdup() case, because `ist()` will not call

[2.2.9] 100% CPU usage

2021-03-04 Thread Maciej Zdeb
Hi, Sometimes after HAProxy reload it starts to loop infinitely, for example 9 of 10 threads using 100% CPU (gdb sessions attached). I've also dumped the core file from gdb. # haproxy -v HA-Proxy version 2.2.9-a947cc2 2021/02/06 - https://haproxy.org/ Status: long-term supported branch - will

Re: Logging down output from the a Lua script

2021-03-04 Thread Mihaly Zachar
On Thu, 4 Mar 2021 at 13:49, Adis Nezirovic wrote: > On 3/4/21 1:39 PM, Mihaly Zachar wrote: > > Dear Adis, > > > > Thank you very much for the prompt answer. It looks promising. > > Yes, I do have the TXN object available. > > > > Currently I am checking the doc here: > >

Re: Logging down output from the a Lua script

2021-03-04 Thread Adis Nezirovic
On 3/4/21 12:22 PM, Mihaly Zachar wrote: Sorry, the above might be misunderstood. I would like to log from the frontend, because some timer values are available only there. So I know that I can send log from the Lua script using core.log() but I need to have the information in the frontend.

Re: Logging down output from the a Lua script

2021-03-04 Thread Mihaly Zachar
On Thu, 4 Mar 2021 at 12:14, Mihaly Zachar wrote: > Hi All, > > I wrote a small HTTP redirect server using HAProxy and Lua. > My question is thet is it possible to log down a value coming from the Lua > script somehow ? > > I am wondering if maybe we can use the "capture" method or something >

Logging down output from the a Lua script

2021-03-04 Thread Mihaly Zachar
Hi All, I wrote a small HTTP redirect server using HAProxy and Lua. My question is thet is it possible to log down a value coming from the Lua script somehow ? I am wondering if maybe we can use the "capture" method or something similar. I have not found anything in the docs unfortunately, but