Re: [ANNOUNCE] haproxy-2.2.34

2025-04-24 Thread Willy Tarreau
Hi Tim,

On Thu, Apr 24, 2025 at 12:10:58PM +0200, Tim Düsterhus wrote:
> Hi
> 
> On 4/23/25 11:51, Willy Tarreau wrote:
> > Let me insist again that this version now reached end of life, so in
> > theory it should not be deployed, or only as a temporary solution to help
> > with a transition to a newer one. If you're still on 2.2 and don't know
> > what version to choose, first, skip 2.4 which dies next year. If you want
> > something super stable, 2.6 is a good one. For more responsiveness from
> > developers and the community in general, better pick 3.0 or above. Note
> > that counter-intuitively, the reliabilty of 3.x could actually surpass
> > that of older versions thanks to a cleaner architecture and better
> > troubleshooting tools in general. Now's time to say good bye to 2.2.
> 
> HAProxy 2.2 is not yet marked EOL in the version table on haproxy.org and on
> https://docs.haproxy.org/.

Yes I know, I thought about doing that at the same moment I'll update the
3.2 release. It's always a pain.

> Is 2.2.34 definitely the last version for sure?
> In that case, I would already remove it from
> https://github.com/docker-library/haproxy. If there might be a small chance
> for another release, I'll wait :-)

I'm not seeing any emergency for killing it. Let's say we can wait for
3.2 to be released so that we continue to have our 5 LTS. If in the
mean time someone finds a big oddity, I'm not against emitting another
one.

Cheers,
Willy




Re: [ANNOUNCE] haproxy-2.2.34

2025-04-24 Thread Tim Düsterhus

Hi

On 4/23/25 11:51, Willy Tarreau wrote:

Let me insist again that this version now reached end of life, so in
theory it should not be deployed, or only as a temporary solution to help
with a transition to a newer one. If you're still on 2.2 and don't know
what version to choose, first, skip 2.4 which dies next year. If you want
something super stable, 2.6 is a good one. For more responsiveness from
developers and the community in general, better pick 3.0 or above. Note
that counter-intuitively, the reliabilty of 3.x could actually surpass
that of older versions thanks to a cleaner architecture and better
troubleshooting tools in general. Now's time to say good bye to 2.2.


HAProxy 2.2 is not yet marked EOL in the version table on haproxy.org 
and on https://docs.haproxy.org/. Is 2.2.34 definitely the last version 
for sure? In that case, I would already remove it from 
https://github.com/docker-library/haproxy. If there might be a small 
chance for another release, I'll wait :-)


Best regards
Tim Düsterhus




[ANNOUNCE] haproxy-2.2.34

2025-04-23 Thread Willy Tarreau
Hi,

HAProxy 2.2.34 was released on 2025/04/23. It added 82 new commits after
version 2.2.33. This version contains one year of fixes and will be the
last one for branch 2.2 (as such it was marked EOL in haproxy -vv). I'm
picking the relevant pieces of the changelog from 2.4.27/28/29. Nothing
looks really important, as expected.

It tends to make modern compilers complain (that was already the case with
2.2.33). I've backported a few build fixes, but the CI still doesn't like
it so I've run the tests manually. I could at least build it and test it
on Linux (ubuntu 20/gcc-9 armv7/aarch64/x86_64, ubuntu 22/gcc-11 aarch64,
slackware 15 x86_64), FreeBSD 13/clang x86_64 and OpenBSD 7.6/gcc-8
mips64.

This version contains the following fixes:
  - one fix was applied for better HTTP error reporting. In some cases, 502
server initial errors were incorrectly hidden and are now properly
logged.
  
  - on the backend side, an issue was found when NTLM headers are used. This
caused the backend connection to be marked dynamically as private to
prevent HTTP reuse. However, this is conceptually wrong when using
HTTP/2 multiplexer on the backend side with http-reuse mode set to
aggressive or higher, as this connection can already be shared accross
several clients. Thus, NTLM headers are simply ignored in this case.
  
  - for the SSL stack, cipher algorithm negotiation was adjusted as haproxy
could have chosen an ECDSA certificate even if not compatible with
client algorithms instead of fallback to RSA.
  
  - a Solaris user reported that external checks were causing an infinite
loop. In fact, this was due to a wrong signal handling in evports,
Solaris polling mechanism, present since its first introduction in
haproxy.

  - an issue in SPOE that can cause a thread to refrain from creating an
applet to connect outside, causing failures on requests processed on
this thread.

  - it was possible to crash the process when performing an implicit
protocol upgrade (TCP to HTTP due to a transition from a TCP front to
an HTTP back) if an error happened on the connection just before the
transition.

  - description of the command line options -dR and -dV were missing in the
management documentation. It is now fixed. Documentation about "show stat"
CLI command was also updated to reflect the renaming of "dns" counters to
"resolvers". In the configuration manual, the info about http-keep-alive
timeout and other timeouts were improved.

  - The way to deal with too many headers in received H2. The maximum
number of headers allowed in HEADERS frames on sending path was lower
than on receiving path. This could lead to report sending errors while
the message was accepted. It could be confusing. In addition, unlike
H1, the number of headers must be limited when H2 messages are sent
to comply to limitation imposed by the protocol. This limit was
increased to support headers rewriting without issue.

  - On the H2 multiplexer, on server side, it was possible to send
RST_STREAM frame for streams with unassigned ID, so before the
formatting of the HEADERS frame, because the session was aborted during
the connection stage. It was an issue if this happened before the H2
PREFACE was sent because this prevent the servers to recognize it as a
H2 connection, leading to an early connection closure. We now take care
to not emit RST_STREAM frame in that case.

  - The request state was not properly reset on L7 retry. The request
channel flag stating some data were sent was not reset on retry. This
could lead to consider a subsequent connection error as a L7 error
while the request was never sent. In that case the request could be
lost, leading to crash.

  - The SIGINT signal could be missed by HAProxy when it was started in
background in a subshell. It is the root cause of some unexpected
timeouts with Vtest scripts. To fix the issue, the default signal
handler is registered for the SIGINT signal during init.

  - an API issue in the applets could have resulted in some shutdown or
error conditions to be missed in the future, so as a prevention it
was fixed. Turns out, after fixing this, it uncovered a bug in the
CLI's "_getsocks" handler that was causing an infinite loop during
reloads, and another one in the SPOE applet where the appled would
never shut down (neither appeared in a released version), and these
bug were also fixed.

  - a BUG_ON() could be triggered when using filters with no http_payload
callback.

  - a bug in htx_xfer_blks() could result in occasionally transfering more
blocks than requested on 32-bit platforms.

  - some TLSv1.3 signature algorithms were not recognized by the
ClientHello parser which was written before TLSv1.3. The ones that
were not correctly supported were based on RSA-PSS and would have
resulted in presenting