[PATCH 7/7] CLEANUP: Apply bug_on.cocci

2021-09-15 Thread Tim Duesterhus
The changes look safe to me, even if `DEBUG_STRICT` is not enabled. --- src/log.c | 3 +-- src/quic_sock.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/log.c b/src/log.c index 5cae18293..875905102 100644 --- a/src/log.c +++ b/src/log.c @@ -3497,8 +3497,7 @@

[PATCH 4/7] CLEANUP: Apply xalloc_size.cocci

2021-09-15 Thread Tim Duesterhus
This fixes a few locations with a hardcoded type within `sizeof()`. --- include/haproxy/listener.h | 2 +- src/errors.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/haproxy/listener.h b/include/haproxy/listener.h index 1c37d34da..2212ca927 100644

[PATCH 0/7] Coccinelle

2021-09-15 Thread Tim Duesterhus
Willy, not sure about the "DOC" tag for the coccinelle patches and the placement within the directory structure. Feel free to adjust. Best regards Tim Duesterhus (7): DOC: Add ist.cocci CLEANUP: Apply ist.cocci DOC: Add xalloc_size.cocci CLEANUP: Apply xalloc_size.cocci DOC: Add

[PATCH 2/7] CLEANUP: Apply ist.cocci

2021-09-15 Thread Tim Duesterhus
This cleans up ist handling. --- addons/ot/src/http.c | 9 +++-- addons/promex/service-prometheus.c | 2 +- include/haproxy/htx.h | 12 ++-- src/hlua.c | 5 ++--- src/stream.c | 2 +- 5 files changed, 13

[PATCH 3/7] DOC: Add xalloc_size.cocci

2021-09-15 Thread Tim Duesterhus
This commits the Coccinelle patch to clean up sizeof handling for malloc/calloc. --- scripts/coccinelle/xalloc_size.cocci | 41 1 file changed, 41 insertions(+) create mode 100644 scripts/coccinelle/xalloc_size.cocci diff --git a/scripts/coccinelle/xalloc_size.cocci

[PATCH 1/7] DOC: Add ist.cocci

2021-09-15 Thread Tim Duesterhus
This commits the Coccinelle patch to clean up ist handling. --- scripts/coccinelle/ist.cocci | 42 1 file changed, 42 insertions(+) create mode 100644 scripts/coccinelle/ist.cocci diff --git a/scripts/coccinelle/ist.cocci b/scripts/coccinelle/ist.cocci new

[PATCH 6/7] DOC: Add bug_on.cocci

2021-09-15 Thread Tim Duesterhus
This replaces an if + ABORT_NOW() by BUG_ON(). It might change behavior, because BUG_ON will result in a no-op if not enabled. --- scripts/coccinelle/bug_on.cocci | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 scripts/coccinelle/bug_on.cocci diff --git

[PATCH 5/7] DOC: Add xalloc_cast.cocci

2021-09-15 Thread Tim Duesterhus
This remove's C++ style casts from the return value of malloc/calloc. see 403fd722ace1d98d3cfe17bbee1382bf58040466 --- scripts/coccinelle/xalloc_cast.cocci | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 scripts/coccinelle/xalloc_cast.cocci diff --git

Paid Link on haproxy.com ?

2021-09-15 Thread Holly Inna
Hi Admin, I have a couple of questions for you: 1. What do you charge for a permanent do-follow link insertion in the old existing post of your website (haproxy.com)? 2. What do you charge for a sponsored post (carrying 800 to 1K words) on your Website? I have many potential clients who

Re: Is it possible to capture the body of http responses?

2021-09-15 Thread Christopher Faulet
Le 9/14/21 à 3:14 AM, Ryan Burn a écrit : On Thu, Sep 9, 2021 at 12:22 AM Christopher Faulet > wrote: Le 8/11/21 à 2:53 AM, Ryan Burn a écrit : > I'm working on integrating HAProxy with traceable.ai