Library

aeronet v1.7.0

Versionv1.7.0
Stars★ 45
Released2026-10-26

Modern, fast and ergonomic C++ HTTP/1.1, HTTP/2 and WebSocket server & client library for Linux, macOS and Windows, perfect for microservices.

Release notes

aeronet 1.7.0 is a security, robustness and performance release. Most of its bug fixes close gaps in the less-travelled corners of the server and client: WebSocket upgrades, static files, HTTP/2 memory bounds, TLS, async handlers, config hot reload, and server lifecycle races. The whole test suite now runs clean under ThreadSanitizer. The release also brings a large round of HTTP/1.1, HTTP/2, TLS, WebSocket and telemetry performance work, and the HTTP client gains streamed response bodies and configuration files.

Upgrading is recommended for all users. Read the breaking changes below first: static files no longer serve dotfiles or links leaving the root, WebSocket upgrades now check the `Origin`, and DogStatsD / `TelemetryContext` metrics must be flushed.

## Highlights

The most important fixes. Upgrade especially if one of these applies to you:

- **Cross-site WebSocket hijacking**: the upgrade bypassed request middleware and CORS policies and accepted any `Origin`, so any website could open a WebSocket authenticated by the user's cookies.
- **Secrets served by the static file handler**: `/.env` or `/.git/config` were served, and symbolic links were followed outside of the root directory.
- **HTTP/2 memory exhaustion**: a 4.5 KB HPACK header block could make the decoder allocate 2.9 GB, and request bodies were only bounded once fully received.
- **Credentials leaked by the HTTP client**: redirects to another origin kept `Authorization` and `Cookie`, and HTTPS to HTTP redirects were followed.
- **Server stalls and crashes**: CONNECT name resolution and OpenTelemetry span export blocked the event loop, a connection arriving while the server stops could crash it, and a client resetting a connection mid-response could raise `SIGPIPE` and terminate the process.
- **TLS**: intermediate certificates were not sent (verification failures for most public CAs), mTLS sessions never resumed, an OpenSSL error left by a handler (e.g. a forged JWT signature) could close healthy connections, and the default OCSP response could be read from freed memory with SNI certificates.
- **Use-after-free and data races**: HPACK dynamic table eviction, async handlers suspended while the connection, the router or the buffers changed, `deferWork()`, `MSG_ZEROCOPY` buffers released too early, and many races on `stats()`, callbacks and the server lifecycle.
- **HTTP/1.1 requests received in several reads** were parsed again on each read: `400` for duplicate headers or query strings, double percent-decoding, repeated `100 Continue`.

## Breaking changes

**Behavior**

- Static files: paths with a dot-prefixed segment (except `.well-known`) and files or directories reached through a link leaving the root are answered `404` unless `showHiddenFiles` is on. Only regular files and directories are served.
- WebSocket upgrades go through the request middleware and check the `Origin` (route CORS policy, otherwise same-origin only), others get `403`. Behind a reverse proxy that rewrites `Host`, give such routes a CORS policy or forward the browser `Host`.
- WebSocket connections use the new `WebSocketConfig::idleTimeout` (60 s, with `autoPing`) instead of `keepAliveTimeout`.
- The `500` answering a throwing handler has no body anymore (the message is only logged).
- HTTP client: redirects to another origin drop `Authorization` and `Cookie` (including `globalHeaders`), and redirects to cleartext HTTP are not followed. Over HTTP/2, the client no longer adds its `globalHeaders` to requests made by another client or after removal.
- `Accept-Encoding: *;q=0` without `identity` is answered `406`.
- HTTP/2 requests whose `content-length` does not match their body are reset with `PROTOCOL_ERROR`.
- `maxDecompressedBytes` now bounds the whole decoded body and exceeding it is answered `413` (was `400`). Received `Content-Encoding` values are lower-cased.
- `HttpClient` with `keepAlive = false` sends `Connection: close`.
- HTTP/2 streams start wit…

Share this resource


Discovered 2026-10-27 Source GitHub Archive 2026-10 →