Repository navigation
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
Forwardedheader is now parsed directly instead of with regular expressions, and thebyparameter 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. UseHttpServer#forwarded(boolean, boolean)orHttpServer#noForwarded()to choose betweenForwardedandX-Forwarded-*.
Other behaviour changes
HttpPredicate.prefix()respects path segments:prefix("/api")no longer matches/api-v2.- Only the official
Nettyio_uringtransport is supported, soio_uringneeds 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
MeterRegistrarand in the built-inMicrometerintegration. - The new
Metrics#observationErrorMappercan 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
ForwardedandX-Forwardedheaders by @violetagg in #4312 - Remove deprecated
SslProvider$SslContextSpec#sslContext(SslProvider$ProtocolSslContextSpec)by @violetagg in #4376 - Parse the standard
Forwardedheader 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
Forwardedheader by @sharanggupta in #4466 - Use port 0 when the forwarded address has no port by @violetagg in #4479
- Support only the
official Netty io_uringtransport by @violetagg in #4486
✨ New features and improvements
- Depend on
Reactor Corev3.9.0by @violetagg in 3d032b0, see release notes - Depend on
Nettyv4.2.20.Finalby @violetagg in #4460 - Depend on
Micrometerv1.18.0by @violetagg in 3d032b0 - Depend on
Micrometer Tracingv1.8.0by @violetagg in 3d032b0 - Depend on
BlockHoundv1.0.19.RELEASEby @violetagg in 3d032b0 - Add
WebSocketclient metrics by @LivingLikeKrillin in #4118 - Expose pending acquire latencies to custom
MeterRegistrarby @ejhnsn in #4250 - Reduce per-request CPU in the HTTP/2 connection pool by @samueldlightfoot in #4297
- Evaluate the address supplier once in
AddressUtils.updatePortby @samueldlightfoot in #4298 - Reuse per-connection address and byte meters in the Micrometer client metrics path by @samueldlightfoot in #4318
- Override
isH2cUpgradeinHttp3Poolto always return false by @violetagg in #4325 - Drop the redundant
addressparameter from the HttpClientrecordRead/recordWrite/startWriteby @violetagg in #4327 - HttpClient: Add API for configuring max decompression buffer size by @violetagg in e413ce9
- Ensure
NonSslRedirectHandleralways does a redirect based on HOST header by @violetagg in 7bd2f47 - WebSocket: Add API for configuring max decompression buffer size by @violetagg in d735cd1
- Extend
HttpCompressionOptionsSpecwith the ability to specify desiredmaxPipelineDepthby @reta in #4338 - Expose connection lifetime to custom
MeterRegistrarby @caiges in #4368 - Refactor
WebSocketHTTP/2handshake request creation by @violetagg in #4374 - Extend
HttpServerConfigwith the ability to specify desiredmaxPipelineDepthby @reta in #4380 - Make connections lifetime available to the built-in
Micrometerintegration by @violetagg in #4382 - Allow recording errors in connect, TLS handshake and hostname resolution observations by @violetagg in #4427
- Remove the unused
RunnablefromHttpClientFormEncoderby @violetagg in #4432 - Replace deprecated
DefaultMeterObservationHandlerconstructor by @violetagg in #4433 - Add
WebSocketserver metrics by @LivingLikeKrillin in #4317 and by @violetagg in #4436 - Fix Http3 not require Quic to be in classpath by @klopfdreh in #4442
🐞 Bug fixes
- Exclude
HTTP/2connections from the pool during thePINGliveness check by @LivingLikeKrillin in #4255 - Add the liveness check to
Http11EvictionPredicateby @LivingLikeKrillin in #4256 - Skip
SNIlookup completion when the channel is already closed by @violetagg in #4266 - Do not capture caller context into pool maintenance tasks by @hocaron in #4300
- Fix WebSocket-over-HTTP/2 server metrics gauge accounting on close by @LivingLikeKrillin in #4302
- Fix
NameResolverProvider#equals/hashCodeby @violetagg in 5c19b57 - Refactor
TracingMapHandleto handle exceptions correctly by @violetagg in 8e63e56 - Update proxy handling by @violetagg in 99365a5
- Refine header handling during redirects by @violetagg in 53e42cf
- Add back-pressure on pipelined HTTP requests by @violetagg in 38cd84c
- Proxy protocol is not supported for HTTP/3 protocol by @violetagg in afb3652
- Resume the read when the pipelined queue drains without a request by @knutwannheden in #4347
- Parse one-digit ports in
HttpClientString URIs by @kalayciburak in #4362 - Ensure websocket handshake error is not swallowed by @violetagg in #4372
- Do not abort the inbound drain on a released buffer by @bmaassenee in #4390
- Close an idle
HTTP/2connection afterGOAWAYby @kenluluuuluuuuu in #4416 - Notify
WebSockethandshake subscribers only after the operations are bound by @violetagg in #4418 - Replay the read suppressed while the pipelined queue is full by @violetagg in #4421
- Include the handler configurator in
SslProviderequality by @violetagg in #4428 - Clean the form data when the request body is written by @violetagg in #4431
- Preserve HTTP form encoder configuration by @gemini-3 and by @violetagg in #4435
- Propagate the
WebSockethandshake failure when the upgrade is subscribed after termination by @violetagg in #4451 - Fix the
NullAwayandError Pronefindings by @violetagg in #4463 - Fix
MonoSendManywhen the channel is already closed by @violetagg in #4464 - Fix the full response release when the server sends
MonoorByteBufby @violetagg in #4465 - Complete the response when the trailer headers consumer throws by @violetagg in #4467
- Bound pending writes when draining fused send sources by @mvanhorn in #4468
- Do not write when the channel is disposed by @violetagg in #4469
- Create the
WebSocketclose frame on subscribe by @violetagg in #4470 - Close the connection when
FullHttpResponsearrives before the request body is sent by @violetagg in #4471 - Release the object when
sendObjectis subscribed after termination by @violetagg in #4474 - Ensure all connection observers are notified by @violetagg in #4481
- Do not release the incoming message when a fatal error is rethrown by @violetagg in #4489
📖 Documentation
- Update javadoc for http-to-https redirect by @violetagg in ac607b0
- Add a
WebSocketecho client example by @anjeongkyun in #4346 - Document native transports on other platforms by @gibkim in #4403
- Escape plural words in (http|tcp)-server.adoc by @ngocnhan-tran1996 in #4452
New Contributors
- @LivingLikeKrillin made their first contribution in #4118
- @ejhnsn made their first contribution in #4250
- @hocaron made their first contribution in #4300
- @anjeongkyun made their first contribution in #4346
- @knutwannheden made their first contribution in #4347
- @kalayciburak made their first contribution in #4362
- @caiges made their first contribution in #4368
- @mbhave made their first contribution in #4373
- @bmaassenee made their first contribution in #4390
- @gibkim made their first contribution in #4403
- @kenluluuuluuuuu made their first contribution in #4416
- @gemini-3 made their first contribution in #4435
- @sharanggupta made their first contribution in #4443
- @ngocnhan-tran1996 made their first contribution in #4452
- @mvanhorn made their first contribution in #4468
Full Changelog: v1.3.6...v1.4.0