Netty 4.2.21.Final released
We are happy to announce the release of Netty 4.2.21.Final. This is a bug-fix release.
Note that Netty 4.1 will be End-of-Life on July 1st, 2027.
This release fixes a mistake in our build that affected Netty 4.2.20 and 4.1.140, where we accidentally increased the glibc version to 2.33 for x86_64 and aarch64. In this release the glibc version requirements return to their previous versions.
Other significant changes are:
- Stop decoding in
Bzip2Decoderafter an error #18259 - Only mirror 127.0.0.1 to the IPv6 loopback in
DnsQueryContextManager#18263 - NIO: Correctly catch all exceptions when
NioDatagramChannel.block(...)fails #18234 - Close channels that are still registered when an
IoEventLoopexits on shutdown #18035 - IoUring: Fall back to buffered writes for non-
FileChannelImplchannels #18229 - Upgrade lz4-java to 1.13.0 #18264
- Include
TrustManager/KeyManagerinstances in TLS session id context computations #18256 - Honour qvalues when
HttpContentCompressorselects the content encoding #17726 - Use HTTP dates in
ReadOnlyHttp2Headers.containsTimeMillis#18271 - Avoid
String.formatinMacAddressUtil.formatAddress#18172 - Initialize the hexadecimal tables of
StringUtillazily and cheaply #18174 - Use the configured directory when creating disk attributes #18297
- SslHandler: Stop wrapping when the transport can not keep up #18253
- Encode the
charafter an unpaired high surrogate inwriteUtf8(...)#18252 - Close a QUIC stream reset #18313
- Use the real parameter names in argument-check messages #18309
- Quic: don't permanently consume stream ids when
createStream(...)fails #18311 - HTTP3: Reject invalid and connection-specific header fields #18298
- Security improvement - allow
MqttDecoder'smaxBytesInMessageto be changed #18125 - Discard input after a failed
Socks5PrivateAuthRequestDecoderdecode #17945 - Call
handshakeFailurefor failed TLS completion events #18323 - Release the handshake response when a
WebSocketextension is rejected #18322 - Notify
LeakListenerfor every detected leak #18324 - Avoid redundant flush scheduling after draining NIO writes #18296
- Get plain 'mvn compile' and 'test-compile' working #18300
- IoUring: Merge small buffers between large ones for
SENDMSG_ZC#18250 - Check the range in
ByteBuf.toString(index, length, charset)#18156 - Fail the
h2cupgrade stream for all header conversion errors #18258 - KQueue/Epoll: Fall back to buffered writes for non-
FileChannelImplchannels #18349 - Handle zero-length and invalid bulk reads in
ByteBufInputStream#18272 - Avoid classloader leak via the shared
TransferEncodingNotAllowedException#18342 - Avoid classloader leak via the QPACK stream inactive exceptions #18343
- Avoid classloader leak via
ImmediateEventExecutorterminationFuturefailure #18338 - Fix
floatmatching in read-only HTTP/2 headers #18294 - Fixed: Call
handshakeFailurefor TLS timeouts and early closes #18363 - Keep adaptive buffer sizes within configured bounds #18358
- Skip the renegotiation check for servers on BoringSSL and AWS-LC #18337
- Canonicalize
NaNvalues written #18295 - Link
synchronization.libwhen building the QUIC codec on Windows #18371 - Reject all control characters and DEL in HTTP response reason phrases #18331
- Key per-channel traffic shaping state #18333
- Fix
ZstdDecoderandZstdDecompressorwith a non-positivedefaultMaxForwardBytes#18289 - Fix accidental glibc version bump #18365
- Update BlockHound allowances for
handleLoopException#18380 - Evict DNS cache entries when expiration tasks are cancelled #18389
- Fix
BrotliDecoderwith a non-positivedefaultMaxForwardBytes#18378 - Convert known signature algorithm names without the regular expression #18379
- Resume
SslHandlerwhen the delegated task was consumed elsewhere #18406 - Fix limit of bytes for gathering writes being ignored after the first buffer #18405
- Use the correct address length when sending batched datagrams to a domain socket #18410
- Reject negative session timeout and cache size in the QUIC
SSLSessionContext#18414 - Reject SPDY frames that do not fit the 24-bit length field #18412
- Don't stop reading domain datagrams after an empty datagram #18408
- Share enabled protocols in
opensslengine #18388 - Query
SSL_pendinglazily inReferenceCountedOpenSslEngine.unwrap#18376 - Release messages written to a closed
EmbeddedChannel#18332 - IoUring: Fail when enabling the ring fails #18216
- Pin
rustcto 1.100.0 in docker images and workflows #18422 - HAProxyMessageEncoder: Reject v2 headers longer than 65535 bytes #18428
For more details please see the complete release notes.
Thank You
Every idea and bug-report counts, and so we thought it is worth mentioning those who helped in this area.
Please report an unintended omission.
- @chrisvest
- @vietj
- @gavinbunney
- @normanmaurer
- @mkurz
- @violetagg
- @gsmet
- @jbertram
- @tsegismont
- @doom369
- @yawkat
- @cardamon
- @b84330808
- @Marti2203
- @kenpritchard
- @AbhishekShukla1289
- @Echo009
- @allthingssecurity
- @dreamlike-ocean
- @qchole
- @hellboy0621
- @netty-project-bot
- @Dhairya-007
- @leviYX
- @wozhenbang2004
- @lihanyu1715446406-afk
- @xh123637
- @Raghuvardhan-Reddy78