Skip to content

v1.4.0

Latest

Choose a tag to compare

@violetagg violetagg released this 20 Nov 12:37
· 30 commits to main since this release
3d032b0

Reactor Netty 1.4.0

Reactor Netty 1.4.0 is part of the 2026.0.0 Release Train. It moves the baseline to Reactor Core 3.9, Micrometer 1.18 and Micrometer Tracing 1.8.

Forwarded headers

  • The standard Forwarded header is now parsed directly instead of with regular expressions, and the by parameter is supported.
  • An obfuscated port (for="192.0.2.43:_abc") is accepted.
  • When the forwarded address has no port, the port is now 0 (unknown) and not the port of the proxy connection.
  • HttpServer#forwarded(boolean) is deprecated. Use HttpServer#forwarded(boolean, boolean) or HttpServer#noForwarded() to choose between Forwarded and X-Forwarded-*.

Other behaviour changes

  • HttpPredicate.prefix() respects path segments: prefix("/api") no longer matches /api-v2.
  • Only the official Netty io_uring transport is supported, so io_uring needs Java 11 or later.

Removed deprecated APIs

  • SslProvider$SslContextSpec#sslContext(SslProvider$ProtocolSslContextSpec)
  • MicrometerChannelMetricsRecorder#getTlsHandshakeTimer(String, String, String)

Observability

  • The connection lifetime metric is now available, both to custom MeterRegistrar and in the built-in Micrometer integration.
  • The new Metrics#observationErrorMapper can record errors in connect, TLS handshake and hostname resolution observations. Nothing is recorded by default.

What's Changed

⚠️ Update considerations and deprecations

  • Require choice between Forwarded and X-Forwarded headers by @violetagg in #4312
  • Remove deprecated SslProvider$SslContextSpec#sslContext(SslProvider$ProtocolSslContextSpec) by @violetagg in #4376
  • Parse the standard Forwarded header directly by @violetagg in #4386
  • Respect the segment boundary in HttpPredicate.prefix() by @sharanggupta in #4443
  • Remove deprecated MicrometerChannelMetricsRecorder#getTlsHandshakeTimer(String, String, String) by @violetagg in #4456
  • Accept an obfuscated port in the Forwarded header by @sharanggupta in #4466
  • Use port 0 when the forwarded address has no port by @violetagg in #4479
  • Support only the official Netty io_uring transport by @violetagg in #4486

✨ New features and improvements

🐞 Bug fixes

📖 Documentation

New Contributors

Full Changelog: v1.3.6...v1.4.0