2.4.31

Latest release in branch 2.4
Released 1 month ago (March 09, 2026)

Software HAProxy
Branch 2.4
Status LTS
End of life
End of life April 01, 2026
First official release version 2.4.0
First official release date 4 years ago (May 14, 2021)
Release notes https://www.haproxy.org/download/2.4/src/CHANGELOG
Source code http://git.haproxy.org/?p=haproxy-2.4.git;a=tree;h=refs/tags/v2.4.31
Download https://www.haproxy.org/download/2.4/
HAProxy 2.4 Releases View full list

What Is New in HAProxy 2.4

HAProxy 2.4 introduces significant enhancements in security, performance, and cloud-native integration. This release focuses on modernizing the load balancer for dynamic environments with new features and critical updates.

Category Key Changes
New Features HTTPS DNS over QUIC, Log to STDERR, FastCGI App Support, Prometheus Exporter
Improvements HTTP Connection Management, HPACK Encoder, Server Queue Priority, SSL/TLS Offloading
Bug Fixes Memory Management, Connection Handling, ACL and Map File Reloads
Deprecated SSL/TLSv1.0 and v1.1, certain keywords and options

How does HAProxy 2.4 improve DNS resolution?

HAProxy 2.4 adds support for DNS over HTTPS (DoH) and DNS over QUIC, moving beyond traditional UDP-based resolution. This allows for encrypted and more reliable DNS queries, which is crucial for traversing restrictive networks. In practice, this means your service discovery is more secure and resilient to interception or packet loss.

What new application protocols are supported?

This version introduces a native FastCGI application server, enabling HAProxy to communicate directly with FastCGI processes like PHP-FPM. You can now use mode fastcgi in a backend to proxy requests, offloading this task from your web servers. This simplifies architectures that rely on FastCGI by integrating the protocol handling into the load balancer layer.

How is observability enhanced in this release?

Observability gets a major boost with a built-in Prometheus exporter. You can now expose metrics in Prometheus format by enabling the new expose-prometheus directive in a frontend or listen section. Additionally, the ability to log to STDERR makes it easier to integrate with containerized logging systems that capture standard output streams.

What performance optimizations were made?

The HPACK encoder for HTTP/2 was rewritten, significantly reducing CPU usage when dealing with HPACK compression. Server queue handling was improved with a new random load-balancing algorithm that prioritizes servers with the shortest queues. These changes matter because they directly reduce latency and improve throughput for HTTP/2 traffic and heavily loaded pools of servers.

Are there any important security deprecations?

Yes, support for the SSLv3, TLSv1.0, and TLSv1.1 protocols has been completely removed to enforce stronger security postures. Furthermore, the nbproc configuration keyword and the allow-0rtt option for TLSv1.3 are now deprecated. You should plan to migrate to TLSv1.2 or higher and use the newer nbthread model.

FAQ

How do I enable the new Prometheus metrics?
Add expose-prometheus to a frontend or listen section and define the URI path. Clients can then scrape metrics from that endpoint in the standard Prometheus format.

Can I use DoH with any DNS provider?
Yes, you can configure the resolvers section to use a dns nameserver with the proto https option pointing to your preferred DoH provider's URL.

What replaces the deprecated nbproc?
You should use the nbthread directive and the thread-based architecture, which has been the preferred model for multi-processing since earlier versions and offers better performance.

Is the FastCGI support a replacement for a web server?
No, it's a proxy feature. It allows HAProxy to forward requests to a FastCGI application process, but it does not serve static files like a traditional web server such as nginx or Apache.

Why was the HPACK encoder rewritten?
The old implementation was inefficient and could become a CPU bottleneck for HTTP/2 traffic. The new encoder is much more performant, reducing CPU load and improving overall throughput.

Releases In Branch 2.4

Version Release date
2.4.31 1 month ago
(March 09, 2026)
2.4.30 6 months ago
(October 03, 2025)
2.4.29 1 year ago
(April 22, 2025)
2.4.28 1 year ago
(November 08, 2024)
2.4.27 1 year ago
(June 18, 2024)
2.4.26 2 years ago
(April 05, 2024)
2.4.25 2 years ago
(December 14, 2023)
2.4.24 2 years ago
(August 19, 2023)
2.4.23 2 years ago
(June 09, 2023)
2.4.22 3 years ago
(February 14, 2023)
2.4.21 3 years ago
(January 27, 2023)
2.4.20 3 years ago
(December 09, 2022)
2.4.19 3 years ago
(September 28, 2022)
2.4.18 3 years ago
(July 27, 2022)
2.4.17 3 years ago
(May 13, 2022)
2.4.16 3 years ago
(April 29, 2022)
2.4.15 4 years ago
(March 14, 2022)
2.4.14 4 years ago
(February 25, 2022)
2.4.13 4 years ago
(February 16, 2022)
2.4.12 4 years ago
(January 11, 2022)
2.4.11 4 years ago
(January 07, 2022)
2.4.10 4 years ago
(December 23, 2021)
2.4.9 4 years ago
(November 24, 2021)
2.4.8 4 years ago
(November 03, 2021)
2.4.6 4 years ago
(October 04, 2021)
2.4.7 4 years ago
(October 04, 2021)
2.4.5 4 years ago
(October 01, 2021)
2.4.4 4 years ago
(September 07, 2021)
2.4.3 4 years ago
(August 17, 2021)
2.4.2 4 years ago
(July 07, 2021)
2.4.1 4 years ago
(June 17, 2021)
2.4.0 4 years ago
(May 14, 2021)
2.4-dev19 4 years ago
(May 10, 2021)
2.4-dev18 4 years ago
(May 01, 2021)
2.4-dev17 4 years ago
(April 23, 2021)
2.4-dev16 5 years ago
(April 09, 2021)
2.4-dev15 5 years ago
(April 02, 2021)
2.4-dev14 5 years ago
(March 27, 2021)
2.4-dev13 5 years ago
(March 19, 2021)
2.4-dev12 5 years ago
(March 13, 2021)
2.4-dev11 5 years ago
(March 05, 2021)
2.4-dev10 5 years ago
(February 26, 2021)
2.4-dev9 5 years ago
(February 20, 2021)
2.4-dev8 5 years ago
(February 13, 2021)
2.4-dev7 5 years ago
(February 05, 2021)
2.4-dev6 5 years ago
(January 22, 2021)
2.4-dev5 5 years ago
(January 06, 2021)
2.4-dev4 5 years ago
(December 21, 2020)
2.4-dev3 5 years ago
(December 11, 2020)
2.4-dev2 5 years ago
(December 01, 2020)
2.4-dev1 5 years ago
(November 21, 2020)
2.4-dev0 5 years ago
(November 05, 2020)