GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cache failure 1233e4a5 by normanmaurer · Pull Request #17565 · netty/netty

Conversation

@normanmaurer

@normanmaurer normanmaurer commented Sep 21, 2026

Copy link
Copy Markdown
Member
  • We should use the correct EventLoopGroup type when using our local tr… (We should use the correct EventLoopGroup type when using our local tr… #13992)
  • Bump japicmp to 0.21.0 (Bump japicmp to 0.21.0 #13995) (Bump japicmp to 0.21.0 (#13995) #13997)
  • Add unix domain socket transport in netty 4.x via JDK16+ (Add unix domain socket transport in netty 4.x via JDK16+ #13965)
  • Support bc-fips in BouncyCastleSelfSignedCertGenerator (Support bc-fips in BouncyCastleSelfSignedCertGenerator #13954)
  • Add no-value key handling only for form body (Add no-value key handling only for form body #13998)
  • Add more JDK versions to the devcontainers (Add more JDK versions to the devcontainers #14008)
  • AdaptivePoolingAllocator EventLoop Magazine's affinity (AdaptivePoolingAllocator EventLoop Magazine's affinity #14017)
  • Branchless varint decoding (Branchless varint decoding #14050)
  • AdaptivePoolingAllocator's Chunks Weak Ref-Counting (AdaptivePoolingAllocator's Chunks Weak Ref-Counting #14056)
  • Remove @UnstableApi usage (Remove @UnstableApi usage #14064)
  • Add support for specifying SecureRandom in SSLContext initialization (Add support for specifying SecureRandom in SSLContext initialization #14058)
  • [maven-release-plugin] prepare release netty-4.1.110.Final
  • [maven-release-plugin] prepare for next development iteration
  • ReadOnlyByteBufferBuf | ReadOnlyUnsafeDirectByteBuf get, copy, dupl… (ReadOnlyByteBufferBuf | ReadOnlyUnsafeDirectByteBuf get*, copy*, dupl… #14072)**
  • ReadyOnlyBuf must return false for isWritable() when sliced or duplicated (ReadyOnly*Buf must return false for isWritable(*) when sliced or duplicated #14071)
  • ReadOnlyByteBuf (and sub-classes) does not create derived buffers tha… (ReadOnlyByteBuf (and sub-classes) does not create derived buffers tha… #14076)
  • ByteBuf.asReadOnly().nioBuffer() need to return read-only ByteBuffer (ByteBuf.asReadOnly().nioBuffer*() need to return read-only ByteBuffer #14078)*
  • Remove unwanted mandatory dependency in OSGi (Remove unwanted mandatory dependency in OSGi #14082)
  • HashedWheelTimer.stop() must cancel tasks. (HashedWheelTimer.stop() must cancel tasks. #14083)
  • Revert "Rewrite ZstdDecoder to remove the need of allocate a huge byt… (Revert "Rewrite ZstdDecoder to remove the need of allocate a huge byt… #14084)
  • Upgrade to jctools from 3.1.0 to 4.0.5 (Upgrade to jctools from 3.1.0 to 4.0.5 #14096)
  • Duplicate of slice should have the same capacity as the original slice so that it's not writable (Duplicate of slice should have the same capacity as the original slice so that it's not writable #14093)
  • Optimize wrap buffer cumulation in SslHandler and don't mutate input buffers (Optimize wrap buffer cumulation in SslHandler and don't mutate input buffers  #14086)
  • Prepare for unsafe memory access deprecated for removal (Prepare for unsafe memory access deprecated for removal #14090)
  • Fix AdaptiveByteBufAllocator class loading on Java 6/7 (Fix AdaptiveByteBufAllocator class loading on Java 6/7 #14101)
  • Revert "Rewrite ZstdDecoder to remove the need of allocate a huge byte[] inte… (Rewrite ZstdDecoder to remove the need of allocate a huge byte[] inte… #13928)"
  • Add missing NULL checks in native code (Add missing NULL checks in native code #14100)
  • Delete class which was committed by mistake
  • [maven-release-plugin] prepare release netty-4.1.111.Final
  • [maven-release-plugin] prepare for next development iteration
  • Add release workflow for 4.2 branch (Add release workflow for 4.2 branch #14108)
  • Use unique naming for release workflows
  • Small typo in InternetProtocolFamily enum javadoc (Small typo in InternetProtocolFamily enum javadoc #14113)
  • ** Avoid unnecessary reflective probes on netty initialization ( Avoid unnecessary reflective probes on netty initialization #14107)**
  • Allow control frames between fragments (Allow control frames between fragments #14122)
  • Only delete the socket file for NioServerDomainSocketChannel (Only delete the socket file for NioServerDomainSocketChannel #14134)
  • Add check for IPv6 brackets when address is unresolved (Add check for IPv6 brackets when address is unresolved #14141)
  • Update java versions to latest release (Update java versions to latest release #14143)
  • Replace usage of mirrorlist with baseurl (Replace usage of mirrorlist with baseurl #14156)
  • fix ResolvConf initialization with SecurityManager enabled (fix ResolvConf initialization with SecurityManager enabled #14154)
  • Correct use cache for search domains as well (Fix potential DNS cache invalidation in ResolveWithDotSearchDomain scenario #14171)
  • Backport the SslContextBuilder.endpointIdentificationAlgorithm method (Backport the SslContextBuilder.endpointIdentificationAlgorithm method #14174)
  • http1, http2 headers: access most used implementations by common type - Headers<CharSequence, CharSequence, ?>. (http1, http2 headers: access most used implementations by common type - Headers<CharSequence, CharSequence, ?>. #14161)
  • Aggressively remove PoolThreadCache references from its finalizer object (Aggressively remove PoolThreadCache references from its finalizer object #14155)
  • Send Http2PriorityFrame through fireUserEventTriggered for Http2MultiplexHandler (Send Http2PriorityFrame through fireUserEventTriggered for Http2MultiplexHandler #14168)
  • Fix potential DNS cache invalidation across different EventLoops (Fix potential DNS cache invalidation across different EventLoops #14147)
  • Reject http header values with non SP / HTAB chars (Reject http header values with non SP / HTAB chars #14178)
  • Don't strip whitespaces from header names and let the validator handl… (Don't strip whitespaces from header names and let the validator handl… #14179)
  • Reject request if NUL is present in the request line (Reject request if NUL is present in the request line #14180)
  • Fix checkstyle errors introduced by fixing merge conflicts
  • ScheduledFutureTask: avoid invoke system clock again (ScheduledFutureTask: avoid invoke system clock again #14162)
  • Allow HTTP responses without reason-phrase (Allow HTTP responses without reason-phrase #14183)
  • Validate HTTP version while decoding (Validate HTTP version while decoding #14187)
  • Only include scopeId on link-local addresses when using native transport (Only include scopeId on link-local addresses when using native transport #14188)
  • [maven-release-plugin] prepare release netty-4.1.112.Final
  • [maven-release-plugin] prepare for next development iteration
  • feat: Support for IP_BIND_ADDRESS_NO_PORT socket option, close Support for IP_BIND_ADDRESS_NO_PORT socket option #14195 (feat: Support for IP_BIND_ADDRESS_NO_PORT socket option, close #14195 #14196)
  • Upgrade java to latest patch releases (Upgrade java to latest patch releases #14194)
  • Port socket half-closed test with no read pending to 4.1 (Port socket half-closed test with no read pending to 4.1 #14206)
  • Failing test: Reentrant close in HttpRequestDecoder (Failing test: Reentrant close in HttpRequestDecoder #13730)
  • Replace docker-compose with docker compose (Replace docker-compose with docker compose #14211)
  • Remove redundant check in path validation in WebSocketServerProtocolHandshakeHandler (Remove redundant check in path validation in WebSocketServerProtocolHandshakeHandler #14216)
  • Ensure AbstractCoalescingBufferQueue does not end up in inconsistent … (Ensure AbstractCoalescingBufferQueue does not end up in inconsistent … #14220)
  • Remove public access modifier from OCSP content types (Remove public access modifier from OCSP content types #14230)
  • SingleThreadEventExecutor should return null on wakeup (Avoid the invalid execution of empty tasks #14233)
  • Update the default value of SO_MAXCONN on Linux from 128 to 4096 (Update the default value of SO_MAXCONN on Linux from 128 to 4096 #14226)
  • Remove reference to parent in recycled buffers for leak detection (Remove reference to parent in recycled buffers for leak detection #14250)
  • Add new SslHandler.isEncrypted(...) variant that will not produce fal… (Add new SslHandler.isEncrypted(...) variant that will not produce fal… #14243)
  • Ensure flushes are not discarded by ChunkedWriteHandler for passed th… (Ensure flushes are not discarded by ChunkedWriteHandler for passed th… #14248)
  • Upgrade to netty-tcnative 2.0.66.Final (Upgrade to netty-tcnative 2.0.66.Final #14254)
  • Fix netty-all artifact snapshot deployments (Fix netty-all artifact snapshot deployments #14264)
  • chore: clean code DefaultChannelPipeline add method (chore: clean code DefaultChannelPipeline add method #14249)
  • adjust continuation frame header length (adjust continuation frame header length #14245)
  • Upload hidden files for staging (Upload hidden files for staging #14275)
  • Cleanup fields on AdaptiveByteBuf::deallocate (Cleanup fields on AdaptiveByteBuf::deallocate #14273)
  • [maven-release-plugin] prepare release netty-4.1.113.Final
  • [maven-release-plugin] prepare for next development iteration
  • Exposed encoderIgnoreMaxHeaderListSize (Exposed encoderIgnoreMaxHeaderListSize #14282)
  • Ensure we always generate sources and javadocs jars (Ensure we always generate sources and javadocs jars #14283)
  • Release AdaptiveByteBuf when ownership could not be transfered. (Release AdaptiveByteBuf when ownership could not be transfered. #14285)
  • Fix race in Http2MultiplexTransportTest (Fix race in Http2MultiplexTransportTest #14289) (Fix race in Http2MultiplexTransportTest (#14289) #14293)
  • Only add Magazine to Set if we can ensure its removed again (Only add Magazine to Set if we can ensure its removed again #14286) (Only add Magazine to Set if we can ensure its removed again (#14286) #14294)
  • Ensure Chunk will not leak if init of AdaptiveByteBuf fails for whate… (Ensure Chunk will not leak if init of AdaptiveByteBuf fails for whate… #14295)
  • Remove overrides in AdaptiveByteBuf that caused double index checks (… (Remove overrides in AdaptiveByteBuf that caused double index checks (… #14296)
  • Cleanup AdaptivePoolingAllocator allocate code to make it easier to r… (Cleanup AdaptivePoolingAllocator allocate code to make it easier to r… #14297)
  • Correctly release one-off allocated chunks (Correctly release one-off allocated chunks #14298) (Correctly release one-off allocated chunks (#14298) #14302)
  • Cleanup internals of AdaptiveByteBufAllocator (Cleanup internals of AdaptiveByteBufAllocator #14299) (Cleanup internals of AdaptiveByteBufAllocator (#14299) #14303)
  • Make arenas reuse their last chunk more aggressively (Make arenas reuse their last chunk more aggressively #14291)
  • Fix bad merge of 3af3083
  • Ensure pooled memory is released when AdaptivePoolingAllocator is GC'… (Ensure pooled memory is released when AdaptivePoolingAllocator is GC'… #14304)
  • Slices / duplicates of AdaptiveByteBuf must not escape the rootParent… (Slices / duplicates of AdaptiveByteBuf must not escape the rootParent… #14310)
  • Fix sizeBucket bug in AdaptivePoolingAllocator (Fix sizeBucket bug in AdaptivePoolingAllocator #14306) (Fix sizeBucket bug in AdaptivePoolingAllocator (#14306) #14311)
  • Validate HTTP Method (Validate HTTP Method #14280)
  • Fix possible leak in HttpResponseDecoderTest (Fix possible leak in HttpResponseDecoderTest #14312)
  • AdaptiveByteBufAllocator: Use Pooled*ByteBuf for retained slices / du… (AdaptiveByteBufAllocator: Use Pooled*ByteBuf for retained slices / du… #14313)
  • Ensure we test BIG_ENDIAN and LITTLE_ENDIAN variants for AdaptiveByteBuf (Ensure we test BIG_ENDIAN and LITTLE_ENDIAN variants for AdaptiveByteBuf #14315)
  • In some scenarios, avoid unnecessary memory allocation (In some scenarios, avoid unnecessary memory allocation #14246)
  • AdaptiveByteBufAllocator: Cleanup internals and make code easier to r… (AdaptiveByteBufAllocator: Cleanup internals and make code easier to r… #14316)
  • AdaptiveByteBufAllocator: Make code more robust in terms of possible … (AdaptiveByteBufAllocator: Make code more robust in terms of possible … #14314)
  • Fix typo in PoolThreadCache.java (Fix typo in PoolThreadCache.java #14319)
  • AdaptiveByteBufAllocator: More strict reference counting for chunks (AdaptiveByteBufAllocator: More strict reference counting for chunks #14322)
  • Ensure we not store the DnsQueryContext for later removal when we cou… (Ensure we not store the DnsQueryContext for later removal when we cou… #14326)
  • Add assert to ensure the same id is not added multiple times (Add assert to ensure the same id is not added multiple times #14325)
  • Ensure we actually remove an element before placing the id back in the DnsQueryIdSpace (Ensure we actually remove an element before placing the id back in the DnsQueryIdSpace #14327)
  • Assert that nameservers are resolved before using these as keys in th… (Assert that nameservers are resolved before using these as keys in th… #14328)
  • Replace ArrayDeque::pollFirst with ArrayDeque::pollLast for Recycler.LocalPool batch. (Recycler could use a LIFO local structure instead of an ArrayDeque #14268) (Replace ArrayDeque::pollFirst with ArrayDeque::pollLast for Recycler.LocalPool batch. (#14268) #14292)
  • Properly free magazine chunks and avoid orphaned magazines (Properly free magazine chunks and avoid orphaned magazines #14334)
  • Magazines must be freed under the expand lock (Magazines must be freed under the expand lock #14336)
  • AdapativeByteBufAllocator: Reduce memory fragmentation (reduce memory fragmentation  #14333)
  • Release message before failing promise when multiple requests are wri… (Release message before failing promise when multiple requests are wri… #14342)
  • MQTT Payload decoding optimization (MQTT Payload decoding optimization #14343)
  • Make handler tests faster by caching self-signed certificates (Make handler tests faster by caching self-signed certificates #14344)
  • MQTT payload decoding fix (MQTT payload decoding fix #14350)
  • AdaptivePoolingAllocator: Resolve the release issue of the currentChunk (AdaptivePoolingAllocator: Resolve the release issue of the currentChunk #14348)
  • Alpine devcontainer fixes (Alpine devcontainer fixes #14352)
  • MQTT Variable Header decoding optimization (MQTT Variable Header decoding optimization #14349)
  • Allow to reuse more then one session per host / port mapping (Allow to reuse more then one session per host / port mapping #14356)
  • Ensure writes will not fail when triggered after receiving UpgradeEve… (Ensure writes will not fail when triggered after receiving UpgradeEve… #14362)
  • Fix OpenSslClientSessionCache remove (Fix OpenSslClientSessionCache remove #14366)
  • Fix flaky BootstrapTest (Fix flaky BootstrapTest #14369)
  • Update small documentation typo (Update small documentation typo #14370)
  • DnsNameResolver: allow users to skip bind() during bootstrap (DnsNameResolver: allow users to skip bind() during bootstrap #14375)
  • Make it possible to notify the TrustManager of resumed sessions (Make it possible to notify the TrustManager of resumed sessions #14358)
  • Initialize DnsNameResolverBuilder at runtime for native images (Initialize DnsNameResolverBuilder at runtime for native images #14376)
  • DnsResolverBuilder methods should make it clear that these are for Da… (DnsResolverBuilder methods should make it clear that these are for Da… #14379)
  • Re-add previous removed method to make revapi plugin happy again.
  • Refactor DnsNameResolver to be able to use different strategies when … (Refactor DnsNameResolver to be able to use different strategies when … #14374)
  • [maven-release-plugin] prepare release netty-4.1.114.Final
  • [maven-release-plugin] prepare for next development iteration
  • Add assert and restore reference count when releasing Chunks (Add assert and restore reference count when releasing Chunks #14391) (Add assert and restore reference count when releasing Chunks (#14391) #14394)
  • Add -am argument when building the all snapshot
  • Change q050's nextList from q075 to q100, to reduce the call stack depth of method PoolChunkList.add(chunk) (Change q050's nextList from q075 to q100, to reduce the call stack depth of method PoolChunkList.add(chunk) #13622)
  • Speed up base64 encoding of certs and keys (Speed up base64 encoding of certs and keys #14405)
  • Fix SSL session resumption with ClientAuth.OPTIONAL and add tests with session tickets (Fix SSL session resumption with ClientAuth.OPTIONAL and add tests with session tickets #14404)
  • Fix incorrect cast in NioDomainSocketChannel.parent() (Fix incorrect cast in NioDomainSocketChannel.parent() #14409)
  • Fix bug where SslHandler may stall after TLSv1.3 handshake with delegate tasks (Fix bug where SslHandler may stall after TLSv1.3 handshake with delegate tasks #14411)
  • Use unpadded JCtools qs for MemoryRegionCache (Use the un-padded JCTools qs where makes sense #12496) (Use unpadded JCtools qs for MemoryRegionCache (#12496) #14426)
  • Log / include the correct error during handshake failure (Log / include the correct error during handshake failure #14428)
  • Update to netty-tcnative 2.0.69.Final (Update to netty-tcnative 2.0.69.Final #14422)
  • Fix epoll_wait retry loop (Fix epoll_wait retry loop #14425)
  • Allow MessageToMessageDecoder to take care of reading more data when … (Allow MessageToMessageDecoder to take care of reading more data when … #14372)
  • Convey autoAckPing in http2 decoder constructor chain (Convey autoAckPing in http2 decoder constructor chain #14429)
  • Include details on why it was not possible to configure accepted issu… (Include details on why it was not possible to configure accepted issu… #14435)
  • Update default benchmark times and homogenise style (Update default benchmark times and homogenise style #14418)
  • Verify default named groups before using them with native SSL impleme… (Verify default named groups before using them with native SSL impleme… #14434)
  • Correctly detect if KeyManager is not supported by OpenSSL version (Correctly detect if KeyManager is not supported by OpenSSL version #14437)
  • Allow to set used named groups per OpenSslContext (Allow to set used named groups per OpenSslContext #14433)
  • AdaptiveByteBufAllocator: Make pooling of AdaptiveByteBuf magazine local (AdaptiveByteBufAllocator: Make pooling of AdaptiveByteBuf magazine local #14414)
  • Make JMH executor threads look like event loop threads (Make JMH executor threads look like event loop threads #14444)
  • Preserve ordering of default named groups during conversation (Preserve ordering of default named groups during conversation #14447)
  • Ensure netty-all generation does not override other snapshot jars (Ensure netty-all generation does not override other snapshot jars #14450)
  • Explicit specify the platform for Docker files (Explicit specify the platform for Docker files #14448)
  • Specialize Adaptive's allocator Recycler based on magazine's owner (Specialize Adaptive's allocator Recycler based on magazine's owner #14421)
  • Merge commit from fork
  • [maven-release-plugin] prepare release netty-4.1.115.Final
  • [maven-release-plugin] prepare for next development iteration
  • Update ACCP (Update ACCP #14365)
  • chore: Make SpdyVersion#version public. (chore: Make SpdyVersion#version public. #14465)
  • chore: Make SpdyFrameEncoder#writeControlFrameHeader a protected method. (chore: Make SpdyFrameEncoder#writeControlFrameHeader a protected method. #14463)
  • chore: Fix javadoc in Http2FrameCodec. (chore: Fix javadoc in Http2FrameCodec. #14468)
  • Rename methods to match naming conventations (Rename methods to match naming conventations #14470)
  • Ensure classifier for corretto is always computed the correct way (Ensure classifier for corretto is always computed the correct way #14472)
  • PcapWriteHandler no longer ignores writePcapGlobalHeader (PcapWriteHandler no longer ignores writePcapGlobalHeader #14477)
  • AdaptiveByteBufAllocator will not use threadlocal magazine if FastThreadLocalThread.willCleanupFastThreadLocals() returns false (AdaptiveByteBufAllocator will not use threadlocal magazine if FastThreadLocalThread.willCleanupFastThreadLocals() returns false #14486)
  • Fix possible race condition in method AdaptivePoolingAllocator.offerToQueue(...) (Fix possible race condition in method AdaptivePoolingAllocator.offerToQueue(...) #14495)
  • Add range check for AdaptivePoolingAllocator.CENTRAL_QUEUE_CAPACITY and MAGAZINE_BUFFER_QUEUE_CAPACITY (Add range check for AdaptivePoolingAllocator.CENTRAL_QUEUE_CAPACITY and MAGAZINE_BUFFER_QUEUE_CAPACITY #14493)
  • Fix HTTP header validation bug (Fix HTTP header validation bug #14492)
  • Make sure the sentinel Magazine.MAGAZINE_FREED not be replaced (Make sure the sentinel Magazine.MAGAZINE_FREED not be replaced #14502)
  • Narrow the lock scope of AdaptivePoolingAllocator.magazineExpandLock (Narrow the lock scope of AdaptivePoolingAllocator.magazineExpandLock #14494)
  • fix: Don't make MqttPublishMessage ensure payload accessibility, close MqttPublishMessage doesn't properly implement refCnt #14507 (fix: Don't make MqttPublishMessage ensure payload accessibility, close #14507 #14509)
  • Decrease usedMemory of magazine when the chunk get deallocated or moved to central queue (Decrease usedMemory of magazine when the chunk get deallocated #14508)
  • Use StandardCompressionOptions in all constructors of HttpContentCompressor (Use StandardCompressionOptions in all constructors of HttpContentCompressor #14466)
  • Only try to use Zstd and Brotli if we can load the native libs. (Only try to use Zstd and Brotli if we can load the native libs. #14519)
  • AdaptiveByteBufAllocator: Correctly manage used memory strategy in al… (AdaptiveByteBufAllocator: Correctly manage used memory strategy in al… #14524)
  • Bump dawidd6/action-download-artifact from 3.0.0 to 6 in /.github/workflows (Bump dawidd6/action-download-artifact from 3.0.0 to 6 in /.github/workflows #14501)
  • Fix bugs in BoundedInputStream (IOException: Maximum number of bytes read #14479) (Fix bugs in BoundedInputStream (#14479) #14480)
  • Bump BlockHound version to 1.0.10.RELEASE (Bump BlockHound version to 1.0.10.RELEASE #14558)
  • Add details to TooLongFrameException message (Add details to TooLongFrameException message #14562)
  • Spdy: Add UnknownFrame parsing support for SpdyFrameCodec. (Spdy: Add UnknownFrame parsing support for SpdyFrameCodec. #14561)
  • chore: returns a SpdyFrame instead. (chore: returns a SpdyFrame instead. #14570)
  • chore: use try finally to encode SpdyDataFrame (chore: use try finally to encode SpdyDataFrame #14572)
  • Add BlockHound exceptions for AdaptivePoolingAllocator (Add BlockHound exceptions for AdaptivePoolingAllocator #14564)
  • Adaptive: Correctly restore allocatedBytes value on failure (Adaptive: Correctly restore allocatedBytes value on failure #14577) (Adaptive: Correctly restore allocatedBytes value on failure (#14577) #14578)
  • Adapt: Only add Chunk to central Queue if unused (Adapt: Only add Chunk to central Queue if unused #14580) (Adapt: Only add Chunk to central Queue if unused (#14580) #14583)
  • Adapt: Don't fail when we run on a host with 1 core (Adapt: Don't fail when we run on a host with 1 core #14582) (Adapt: Don't fail when we run on a host with 1 core (#14582) #14584)
  • chore: use readRetainedSlice to avoid copy in SpdyFrameDecoder (chore: use readRetainedSlice to avoid copy in SpdyFrameDecoder #14573)
  • Adapt: Ensure Chunks from the central Queue are re-used even if there… (Adapt: Ensure Chunks from the central Queue are re-used even if there… #14586)
  • Allow PcapWriteHandler to output PCAP files larger than 2GB (Allow PcapWriteHandler to output PCAP files larger than 2GB #14478)
  • Correctly gard aginst failure when running on systems with 1 core
  • Fix race and leaks introduced in tests by a16f8aa… (Fix race and leaks introduced in tests by a16f8aaf2ff101567a526916b46… #14588)
  • Adaptive: Add assert to guard against bugs related to chunk pooling (Adaptive: Add assert to guard against bugs related to chunk pooling #14590)
  • [maven-release-plugin] prepare release netty-4.1.116.Final
  • [maven-release-plugin] prepare for next development iteration
  • Remove the m2e plug-in work around (Remove the m2e plug-in work around #14599)
  • Reduce noise when running PcapWriteHandlerTest (Reduce noise when running PcapWriteHandlerTest #14596)
  • Bump commons-io:commons-io from 2.8.0 to 2.14.0 (Bump commons-io:commons-io from 2.8.0 to 2.14.0 #14387)
  • Use Arrays in IpSubnetFilter (Use Arrays in IpSubnetFilter #14593)
  • Support BouncyCastle FIPS for reading PEM files (Support BouncyCastle FIPS for reading PEM files #14618)
  • Fix classloader leaks in GlobalEventExecutor (Fix classloader leaks in GlobalEventExecutor #14616)
  • Dns: Correctly encode DnsPtrRecord (Dns: Correctly encode DnsPtrRecord #14628)
  • PooledByteBufAllocator: PooledByteBufAllocator.numThreadLocalCaches()… (PooledByteBufAllocator: PooledByteBufAllocator.numThreadLocalCaches()… #14626)
  • Make DefaultResourceLeak more resilient against OOM (Make DefaultResourceLeak more resilient against OOM #14637)
  • Reentrant close in EmbeddedChannel (Reentrant close in EmbeddedChannel #14642)
  • SslHandler: Ensure buffers are never leaked when wrap(...) produce SS… (SslHandler: Ensure buffers are never leaked when wrap(...) produce SS… #14647)
  • OpenSslSession: Add support to defensively check for peer certs (OpenSslSession: Add support to defensively check for peer certs #14641)
  • Provides Brotli settings without com.aayushatharva.brotli4j dependency (Provides Brotli settings without com.aayushatharva.brotli4j dependency #14629)
  • Adaptive: Only use ThreadLocal if called from FastThreadLocalThread i… (Adaptive: Only use ThreadLocal if called from FastThreadLocalThread i… #14656)
  • Update maven to 3.9.9 (Update maven to 3.9.9 #14654)
  • Add configure to be able to use perf / intellij profiler within devco… (Add configure to be able to use perf / intellij profiler within devco… #14661)
  • Correcly handle comments appended to nameserver declarations (Correcly handle comments appended to nameserver declarations #14658)
  • Update java versions (Update java versions #14660)
  • [maven-release-plugin] prepare release netty-4.1.117.Final
  • [maven-release-plugin] prepare for next development iteration
  • Clarify documentation on max HTTP header size (Clarify documentation on max HTTP header size #14670)
  • chore: Extract a selectReturnPrematurely method (chore: Extract a selectReturnPrematurely method #14675)
  • Fix recycling in CodecOutputList (Fix recycling in CodecOutputList #14706)
  • Fix SSLEngineTest.testBufferUnderflowPacketSizeDependency(...) (Fix SSLEngineTest.testBufferUnderflowPacketSizeDependency(...) #14713) (Fix SSLEngineTest.testBufferUnderflowPacketSizeDependency(...) (#14713) #14714)
  • Allocate bytebuf without magazine lock when threads get collisions (Allocate bytebuf without magazine lock when threads get collisions #14594)
  • HTTP/2: Make Http2FrameCodec's constructor protected. (HTTP/2: Make Http2FrameCodec's constructor protected. #14722)
  • Make StreamBufferingEncoder not send header frame with priority by default (Make StreamBufferingEncoder not send header frame with priority by default #14732)
  • Notify event loop termination future of unexpected exceptions (Notify event loop termination future of unexpected exceptions #14734)
  • HTTP/2: Add newHttp2UnknownFrame to Http2FrameCodec (HTTP/2: Add newHttp2UnknownFrame to Http2FrameCodec #14720)
  • KQueueEventLoop leaks memory on shutdown. (KQueueEventLoop leaks memory on shutdown. #14745)
  • Fix AccessControlException in GlobalEventExecutor (Fix AccessControlException in GlobalEventExecutor #14743)
  • Fix possible buffer leak when stream can't be mapped (Fix possible buffer leak when stream can't be mapped #14746)
  • Change the default AdaptiveRecvByteBufAllocator buffer size values' visibility to public (Change the default AdaptiveRecvByteBufAllocator buffer size values' visibility to public #14758)
  • AdaptivePoolingAllocator: Round chunk sizes up to MIN_CHUNK_SIZE units and reduce chunk release frequency (AdaptivePoolingAllocator: Round chunk sizes up to MIN_CHUNK_SIZE units and reduce chunk release frequency #14768)
  • Only run 2 jobs with leak detection to minimize build times (Only run 2 jobs with leak detection to minimize build times #14784)
  • Upgrade netty-tcnative to 2.0.70.Final (Upgrade netty-tcnative to 2.0.70.Final #14790)
  • Merge commit from fork
  • Merge commit from fork
  • [maven-release-plugin] prepare release netty-4.1.118.Final
  • [maven-release-plugin] prepare for next development iteration
  • chore: Sync the id when DefaultHttp2FrameStream's stream is updated. (chore: Sync the id when DefaultHttp2FrameStream's stream is updated. #14803)
  • Replace SSL assertion with explicit record length check (Replace SSL assertion with explicit record length check #14810)
  • Fix NPE when upgrade message fails to aggregate (Fix NPE when upgrade message fails to aggregate #14816)
  • SslHandler: Fix possible NPE when executor is used for delegating (SslHandler: Fix possible NPE when executor is used for delegating #14830)
  • Bump BlockHound version to 1.0.11.RELEASE (Bump BlockHound version to 1.0.11.RELEASE #14814)
  • Consistently add channel info in HTTP/2 logs (Consistently add channel info in HTTP/2 logs #14829)
  • Add QueryStringDecoder option to leave '+' alone (Add QueryStringDecoder option to leave '+' alone #14850)
  • Use initialized BouncyCastle providers when available (Use initialized BouncyCastle providers when available #14855)
  • [maven-release-plugin] prepare release netty-4.1.119.Final
  • [maven-release-plugin] prepare for next development iteration
  • Fix flawed termination condition check in HttpPostRequestEncoder… (Fix flawed termination condition check in HttpPostRequestEncoder… #14799)
  • Disable assertion by default in JMH tests (Disable assertion by default in JMH tests #14878)
  • Use ubuntu-latest for github workflow run (Use ubuntu-latest for github workflow run #14886)
  • Exposed decoderEnforceMaxConsecutiveEmptyDataFrames and decoderEnforceMaxRstFramesPerWindow (Exposed decoderEnforceMaxConsecutiveEmptyDataFrames and decoderEnforceMaxRstFramesPerWindow #14892)
  • ThreadExecutorMap must restore old EventExecutor (ThreadExecutorMap must restore old EventExecutor #14895) (ThreadExecutorMap must restore old EventExecutor (#14895) #14899)
  • Update java versions (Update java versions #14937)
  • Adaptive: Correctly enforce leak detection when using AdaptiveByteBuf… (Adaptive: Correctly enforce leak detection when using AdaptiveByteBuf… #14949)
  • AsciiString::regionMatches is not optimized for AsciiString (AsciiString::regionMatches is not optimized for AsciiString #14947)
  • Disable sun.misc.Unsafe by default on Java 24+ (Disable sun.misc.Unsafe by default on Java 24+ #14943)
  • Fix support for DH_anon and ECDH_anon authentication methods (Fix support for DH_anon and ECDH_anon authentication methods #14978)
  • HTTP2: Allow to manually manage window update frames when using Http2… (HTTP2: Allow to manually manage window update frames when using Http2… #14974)
  • Make Recycler virtual thread friendly (Make Recycler virtual thread friendly #14932)
  • Optimise HttpMethod#valueOf fast path lookup. (Optimise HttpMethod#valueOf fast path lookup. #14982) (Optimise HttpMethod#valueOf fast path lookup. (#14982) #14983)
  • Add suppressed exception to original cause when calling Future.sync (Add suppressed exception to original cause when calling Future.sync* #14985)*
  • Make native image profiles activate on 'native-image' binary (Make native image profiles activate on 'native-image' binary #14986)
  • [bugfix]: Fix the issue where pendingTimeouts may be incorrect in the HashedWheelTimer. ([BUG] pendingTimeouts may be incorrect in the HashedWheelTimer #14959) ([bugfix]: Fix the issue where pendingTimeouts may be incorrect in the HashedWheelTimer. (#14959) #14960)
  • AdaptivePoolingAllocator: code clean (AdaptivePoolingAllocator: code clean #14994) (AdaptivePoolingAllocator: code clean (#14994) #14999)
  • Add build profile for oss-fuzz compilation (Add build profile for oss-fuzz compilation #14759)
  • Correct computation for suboptimal chunk retirement probability (Correct computation for suboptimal chunk retirement probability #15014)
  • Add SETTINGS_ENABLE_CONNECT_PROTOCOL to the default HTTP/2 settings (Add SETTINGS_ENABLE_CONNECT_PROTOCOL to the default HTTP/2 settings #14995)
  • Fix bug in method AdaptivePoolingAllocator.allocateWithoutLock(...) (Fix bug in method AdaptivePoolingAllocator.allocateWithoutLock(...) #15032)
  • Fix a Bytebuf leak in TcpDnsQueryDecoder (Fix a Bytebuf leak in TcpDnsQueryDecoder #15033) (Fix a Bytebuf leak in TcpDnsQueryDecoder (#15033) #15035)
  • fix: WebSocketClientCompressionHandler shouldn't claim window bits su… (fix: WebSocketClientCompressionHandler shouldn't claim window bits su… #15039)
  • Fix the assignment error of maxQoS parameter in ConnAck Properties (#… (Fix the assignment error of maxQoS parameter in ConnAck Properties (#… #15040)
  • SSL: Clear native error if named group is not supported (SSL: Clear native error if named group is not supported #15001) (SSL: Clear native error if named group is not supported (#15001) #15038)
  • Add macos runners (Add macos runners #15042)
  • Fix staging of macos builds
  • Less verbosity in build logs (Less verbosity in build logs #15049)
  • [maven-release-plugin] prepare release netty-4.1.120.Final
  • [maven-release-plugin] prepare for next development iteration
  • [maven-release-plugin] rollback the release of netty-4.1.120.Final
  • Use correct working directory when try to use brew bundle
  • Delete release workflows as these will be run manually only and so will be picked from the default branch (which is 4.2)
  • [maven-release-plugin] prepare release netty-4.1.120.Final
  • [maven-release-plugin] prepare for next development iteration
  • [maven-release-plugin] rollback the release of netty-4.1.120.Final
  • [maven-release-plugin] prepare release netty-4.1.120.Final
  • [maven-release-plugin] prepare for next development iteration
  • [maven-release-plugin] rollback the release of netty-4.1.120.Final
  • [maven-release-plugin] prepare release netty-4.1.120.Final
  • [maven-release-plugin] prepare for next development iteration
  • [maven-release-plugin] rollback the release of netty-4.1.120.Final
  • [maven-release-plugin] prepare release netty-4.1.120.Final
  • [maven-release-plugin] prepare for next development iteration
  • [maven-release-plugin] rollback the release of netty-4.1.120.Final
  • Add missing install_local_staging.sh script
  • [maven-release-plugin] prepare release netty-4.1.120.Final
  • [maven-release-plugin] prepare for next development iteration
  • [maven-release-plugin] rollback the release of netty-4.1.120.Final
  • [maven-release-plugin] prepare release netty-4.1.120.Final
  • [maven-release-plugin] prepare for next development iteration
  • [maven-release-plugin] rollback the release of netty-4.1.120.Final
  • [maven-release-plugin] prepare release netty-4.1.120.Final
  • [maven-release-plugin] prepare for next development iteration
  • [maven-release-plugin] rollback the release of netty-4.1.120.Final
  • [maven-release-plugin] prepare release netty-4.1.120.Final
  • [maven-release-plugin] prepare for next development iteration
  • Fix transport-native-epoll Bundle-SymbolicNames (Fix transport-native-epoll Bundle-SymbolicNames #15059) (Fix transport-native-epoll Bundle-SymbolicNames (#15059) #15068)
  • [maven-release-plugin] prepare release netty-4.1.121.Final
  • [maven-release-plugin] prepare for next development iteration
  • Fix transport-native-kqueue Bundle-SymbolicNames (Fix transport-native-kqueue Bundle-SymbolicNames #15075)
  • Fix resolver-dns-native-macos Bundle-SymbolicNames (Fix resolver-dns-native-macos Bundle-SymbolicNames #15076)
  • Skip redundant checks in our builds (Skip redundant checks in our builds #15086) (Skip redundant checks in our builds (#15086) #15087)
  • Small adaptive allocator optimization (Small adaptive allocator optimization #15062) (Small adaptive allocator optimization (#15062) #15088)
  • Use scripts to install and merge staged artifacts during deployment of snapshots
  • DirContextUtils.addNameServer(...) should just catch Exception intern… (DirContextUtils.addNameServer(...) should just catch Exception intern… #15108)
  • Update to netty-tcnative 2.0.71.Final (Update to netty-tcnative 2.0.71.Final #15103) (Update to netty-tcnative 2.0.71.Final (#15103) #15109)
  • Fix buffer leak in TcpDnsTest (Fix buffer leak in TcpDnsTest #15115) (Fix buffer leak in TcpDnsTest (#15115) #15116)
  • [refactor] decrease scope if few loggers ([refactor] decrease scope if few loggers #15113)
  • Make public API specify explicit maxAllocation to prevent OOM (Make public API specify explicit maxAllocation to prevent OOM #15005) (Make public API specify explicit maxAllocation to prevent OOM (#15005) #15122)
  • Fix concurrent ByteBuf write access bug in adaptive allocator (Fix concurrent ByteBuf write access bug in adaptive allocator #15131) (Fix concurrent ByteBuf write access bug in adaptive allocator (#15131) #15132)
  • Always correctly calculate the memory address of the ByteBuf even if … (Always correctly calculate the memory address of the ByteBuf even if … #15144)
  • Upgrade lz4 dependencies as the old version did not correctly handle … (Upgrade lz4 dependencies as the old version did not correctly handle … #15147)
  • Remove --illegal-access=deny on JDK17+ (Remove --illegal-access=deny on JDK17+ #15149) (Remove --illegal-access=deny on JDK17+ (#15149) #15152)
  • Kqueue: Fix registration failure when fd is reused (Kqueue: Fix registration failure when fd is reused #15162)
  • Optimize ByteBuf.setCharSequence for adaptive allocator (Optimize ByteBuf.setCharSequence for adaptive allocator #15165) (Optimize ByteBuf.setCharSequence for adaptive allocator (#15165) #15170)
  • Fix typo in benchmark (Fix typo in benchmark #15177)
  • Use warn as logging level when running testsuite (Use warn as logging level when running testsuite #15178)
  • Update maven compiler plugin to latest release (Update maven compiler plugin to latest release #15174)
  • Move the RiscV 64 build to a nightly job (Move the RiscV 64 build to a nightly job #15185)
  • Disable OIO tests by default (Disable OIO tests by default #15182) (Disable OIO tests by default (#15182) #15190)
  • Include failure logs in cancelled builds (Include failure logs in cancelled builds #15183) (Include failure logs in cancelled builds (#15183) #15192)
  • Ensure OpenSsl.availableJavaCipherSuites does not contain null value … (Ensure OpenSsl.availableJavaCipherSuites does not contain null value … #15219)
  • Make JdkZlibEncoder accept Deflater.DEFAULT_COMPRESSION as level (Use new jboss nexus repo to resolve OOTB compilation issues #15… (Make JdkZlibEncoder accept Deflater.DEFAULT_COMPRESSION as level (#15… #15220)
  • dev-tools should use the netty-parent as parent (dev-tools should use the netty-parent as parent #15229) (dev-tools should use the netty-parent as parent (#15229) #15233)
  • Fix usage of dev-tools (Fix usage of dev-tools #15236) (Fix usage of dev-tools (#15236) #15239)
  • Fix netty.dev.tools.directory property to point to the correct directory
  • Move test dependency declarations to modules (Move test dependency declarations to modules #15234)
  • bom should use netty-parent (bom should use netty-parent #15235) (bom should use netty-parent (#15235) #15241)
  • Adjust docker files to match the new release workflow
  • Adjust scripts for new release workflow
  • Migrate using maven central (Migrate using maven central #15218) (Migrate using maven central (#15218) #15242)
  • Update to netty-tcnative 2.0.72.Final (Update to netty-tcnative 2.0.72.Final #15240) (Update to netty-tcnative 2.0.72.Final (#15240) #15248)
  • Always prefer direct buffers for pooled allocators if not explicit di… (Always prefer direct buffers for pooled allocators if not explicit di… #15245)
  • Add netty-build-common as dependency for maven-surefire-plugin (Add netty-build-common as dependency for maven-surefire-plugin #15252) (Add netty-build-common as dependency for maven-surefire-plugin (#15252) #15257)
  • Precalculate TOKEN_CHARS_HIGH and TOKEN_CHARS_LOW in HttpUtil (Precalculate TOKEN_CHARS_HIGH and TOKEN_CHARS_LOW in HttpUtil #15261) (Precalculate TOKEN_CHARS_HIGH and TOKEN_CHARS_LOW in HttpUtil (#15261) #15266)
  • Fix deployment of snapshots
  • Add missing distributionManagement section
  • Cancel running / queue jobs when a new change was pushed to branch (#… (Cancel running / queue jobs when a new change was pushed to branch (#… #15268)
  • Kqueue: Only test for TCP_FASTOPEN if its supported (Kqueue: Only test for TCP_FASTOPEN if its supported #15270) (Kqueue: Only test for TCP_FASTOPEN if its supported (#15270) #15271)
  • Fix resolving of netty-tcnative-boringssl-static SNAPSHOTS (Fix resolving of netty-tcnative-boringssl-static SNAPSHOTS #15267) (Fix resolving of netty-tcnative-boringssl-static SNAPSHOTS (#15267) #15272)
  • Testsuite: Don't assume readerIndex is 0 in SocketFixedLengthEchoTest… (Testsuite: Don't assume readerIndex is 0 in SocketFixedLengthEchoTest… #15285)
  • Share the maven cache across builds (Share the maven cache across builds #15283) (Share the maven cache across builds (#15283) #15289)
  • Kqueue: Delay removal from registration map to fix noisy warnings (Build stability fix + .gitignore update #1… (Kqueue: Delay removal from registration map to fix noisy warnings (#1… #15293)
  • Re-enable sun.misc.Unsafe by default on Java 24+ (Re-enable sun.misc.Unsafe by default on Java 24+ #15296)
  • Remove dependency on hamcrest (Remove dependency on hamcrest #15264) (Remove dependency on hamcrest (#15264) #15297)
  • StreamBufferingEncoder doesn't work when settings auto-ack is disab… (StreamBufferingEncoder doesn't work when settings auto-ack is disab… #15304)
  • Revert "bom should use netty-parent (bom should use netty-parent #15235) (bom should use netty-parent (#15235) #15241)"
  • Fix usage of publish plugin to only stage locally
  • [maven-release-plugin] prepare release netty-4.1.122.Final
  • [maven-release-plugin] prepare for next development iteration
  • Correct what artifacts included in netty-bom (Correct what artifacts included in netty-bom #15308)
  • Add missing plugin configuration for publishing of releases and snapshots
  • Specify nexusUrl when deploying snapshots to fix deploy workflow
  • Add missing distributionManagement section so snapshot deployments work
  • Upgrade Windows GHA images to Windows Server 2022 (Upgrade Windows GHA images to Windows Server 2022 #15300)
  • Use checkAvailable(); in #readByte(); method (ByteBufInputStream#readByte(); should use checkAvailable(); method #15305) (Use checkAvailable(); in #readByte(); method (#15305) #15314) (Use checkAvailable(); in #readByte(); method (#15305) (#15314) #15319)
  • Backport Unsafe guards (Backport Unsafe guards #15346)
  • Fix typo in javadoc (Fix typo in javadoc #15323)
  • HTTP2: Always produce a RST frame on stream exception (HTTP2: Always produce a RST frame on stream exception #15352) (HTTP2: Always produce a RST frame on stream exception (#15352) #15355)
  • Guard recomputed offset access with hasUnsafe (Guard recomputed offset access with hasUnsafe #15354) (Guard recomputed offset access with hasUnsafe (#15354) #15357)
  • fix type token import (fix type token import #15342) (fix type token import (#15342) #15347) (fix type token import (#15342) (#15347) #15358)
  • Upgrade Blockhound to fix usage on Java25+ (Upgrade Blockhound to fix usage on Java25+ #15356) (Upgrade Blockhound to fix usage on Java25+ (#15356) #15359)
  • AbstractDnsRecord: equals() and hashCode() to ignore name field's case (AbstractDnsRecord: equals() and hashCode() to ignore name field's case #15330)
  • Remove guava from dependencies (Remove guava from dependencies #15348) (Remove guava from dependencies (#15348) #15361)
  • Optimize capacity bumping for adaptive ByteBufs (Optimize capacity bumping for adaptive ByteBufs #15080) (Optimize capacity bumping for adaptive ByteBufs (#15080) #15368)
  • Fix bug in capacity(int) for the adaptive allocator (Fix bug in capacity(int) for the adaptive allocator #15367) (Fix bug in capacity(int) for the adaptive allocator (#15367) #15370)
  • AdaptiveByteBuf: Fix AdaptiveByteBuf.maxFastWritableBytes() to take w… (AdaptiveByteBuf: Fix AdaptiveByteBuf.maxFastWritableBytes() to take w… #15376)
  • Testsuite: Ensure counter is updated before write happens so lastIdx … (Testsuite: Ensure counter is updated before write happens so lastIdx … #15374)
  • Update to maven-3.9.10 (Update to maven-3.9.10 #15383)
  • Adaptive: Override setZero(...) / writeZero(...) method to be able to… (Adaptive: Override setZero(...) / writeZero(...) method to be able to… #15385)
  • Adaptive: Fix possible buffer corruption caused by incorrect setCharS… (Adaptive: Fix possible buffer corruption caused by incorrect setCharS… #15391) (Adaptive: Fix possible buffer corruption caused by incorrect setCharS… (#15391) #15393)
  • Testsuite: Make testing with wrapped / direct buffers more random (Build stability fix + .gitignore update #1… (Testsuite: Make testing with wrapped / direct buffers more random (#1… #15395)
  • Remove dependency on yammer (Remove dependency on yammer #15396) (Remove dependency on yammer (#15396) #15400)
  • Discourage usage of ServerBootstrap.group(EventLoopGroup, EventLoopGr… (Discourage usage of ServerBootstrap.group(EventLoopGroup, EventLoopGr… #15403)
  • Cleanup: Correctly shutdown EventLoopGroup after test run (Cleanup: Correctly shutdown EventLoopGroup after test run #15407) (Cleanup: Correctly shutdown EventLoopGroup after test run (#15407) #15409)
  • Fix concurrent ByteBuffer access issue in AdaptiveByteBuf.getBytes (#… (Fix concurrent ByteBuffer access issue in AdaptiveByteBuf.getBytes (#… #15410)
  • Include the "noexec" message in the UnsatisfiedLinkError chain (Include the "noexec" message in the UnsatisfiedLinkError chain #15415)
  • Introduce size-classes for the adaptive allocator (Introduce size-classes for the adaptive allocator #15399) (Introduce size-classes for the adaptive allocator (#15399) #15414)
  • Reduce magazine proliferation eagerness (Reduce magazine proliferation eagerness #15421) (Reduce magazine proliferation eagerness (#15421) #15422)
  • More accurate adaptive memory usage accounting (More accurate adaptive memory usage accounting #15423) (More accurate adaptive memory usage accounting (#15423) #15425)
  • Fix chunk reuse bug in adaptive allocator (Fix chunk reuse bug in adaptive allocator #15424) (Fix chunk reuse bug in adaptive allocator (#15424) #15428)
  • Branchless and O(1) size class look-up (Branchless and O(1) size class look-up #15417) (Branchless and O(1) size class look-up (#15417) #15461)
  • Fix size overflow in AbstractDiskHttpData (Fix size overflow in AbstractDiskHttpData #15463) (Fix size overflow in AbstractDiskHttpData (#15463) #15478)
  • [maven-release-plugin] prepare release netty-4.1.123.Final
  • [maven-release-plugin] prepare for next development iteration
  • Try making the DatagramMulticastTest less flaky (Try making the DatagramMulticastTest less flaky #15498)
  • Fix NPE and AssertionErrors when many tasks are scheduled and cancelled (Fix NPE and AssertionErrors when many tasks are scheduled and cancelled #15499)
  • HTTP2: Http2ConnectionHandler should always use Http2ConnectionEncode… (HTTP2: Http2ConnectionHandler should always use Http2ConnectionEncode… #15518)
  • ByteBufOutputStream.writeBytes should only write lower-order bytes (ByteBufOutputStream.writeBytes should only write lower-order bytes #15515)
  • Epoll: Correctly handle UDP packets with source port of 0. (Epoll: Correctly handle UDP packets with source port of 0. #15528) (Epoll: Correctly handle UDP packets with source port of 0. (#15528) #15537)
  • Do no check length parameter of ByteBufOutputStream.write(byte[], int… (Do no check length parameter of ByteBufOutputStream.write(byte[], int… #15538)
  • Use ChannelException if DomainSocketChannelConfig method throws (Use ChannelException if DomainSocketChannelConfig method throws #15543) (Use ChannelException if DomainSocketChannelConfig method throws (#15543) #15545)
  • Fix netty-common OSGi Import-Package header (Fix netty-common OSGi Import-Package header #15540) (Fix netty-common OSGi Import-Package header (#15540) #15546)
  • Remove usage of io.netty.build.junit.TimedOutTestsListener (Remove usage of io.netty.build.junit.TimedOutTestsListener #15550) (Remove usage of io.netty.build.junit.TimedOutTestsListener (#15550) #15552)
  • Skip testsuite-osgi by default (Skip testsuite-osgi by default #15549) (Skip testsuite-osgi by default (#15549) #15553)
  • MqttConnectPayload.toString() includes password (MqttConnectPayload.toString() includes password #15547) (MqttConnectPayload.toString() includes password (#15547) #15548) (MqttConnectPayload.toString() includes password (#15547) (#15548) #15554)
  • Merge commit from fork
  • [maven-release-plugin] prepare release netty-4.1.124.Final
  • [maven-release-plugin] prepare for next development iteration
  • Make org.graalvm.nativeimage:svm optional in netty-common (Make org.graalvm.nativeimage:svm optional in netty-common #15558)
  • Exposed encoderEnforceMaxRstFramesPerWindow for HttpToHttp2ConnectionHandlerBuilder (Exposed encoderEnforceMaxRstFramesPerWindow for HttpToHttp2ConnectionHandlerBuilder #15560)
  • Always load BouncyCastle classes with the Netty classloader (Always load BouncyCastle classes with the Netty classloader #15533)
  • HTTP2: Increase sleep time in test
  • Always load BouncyCastle classes with the Netty classloader (Always load BouncyCastle classes with the Netty classloader #15533) … (Always load BouncyCastle classes with the Netty classloader (#15533) … #15570)
  • Make DatagramMulticastTest handlers sharable (Make DatagramMulticastTest handlers sharable #15579)
  • Don't try to handle incomplete upgrade request (Don't try to handle incomplete upgrade request #15581) (Don't try to handle incomplete upgrade request (#15581) #15585)
  • Update to latest netty-tcnative release (Update to latest netty-tcnative release #15587) (Update to latest netty-tcnative release (#15587) #15590)
  • Replace Java23 with Java24 for CI testing (Replace Java23 with Java24 for CI testing #15102) (Replace Java23 with Java24 for CI testing (#15102) #15158)
  • Drop unknown frame on missing stream (Drop unknown frame on missing stream #15592) (Drop unknown frame on missing stream (#15592) #15595)
  • Fix IllegalReferenceCountException on invalid upgrade response (Fix IllegalReferenceCountException on invalid upgrade response #15602) (Fix IllegalReferenceCountException on invalid upgrade response (#15602) #15606)
  • Update JDK releases to latest patch release (Update JDK releases to latest patch release #15601) (Update JDK releases to latest patch release (#15601) #15605)
  • Update maven-surefire-plugin (Update maven-surefire-plugin #15186) (Update maven-surefire-plugin (#15186) #15191)
  • Update to latest maven release (Update to latest maven release #15607)
  • Merge commit from fork
  • Merge commit from fork (Merge commit from fork #15612)
  • [maven-release-plugin] prepare release netty-4.1.125.Final
  • [maven-release-plugin] prepare for next development iteration
  • Revert "Replace Java23 with Java24 for CI testing (Replace Java23 with Java24 for CI testing #15102) (Replace Java23 with Java24 for CI testing (#15102) #15158)"
  • [maven-release-plugin] prepare release netty-4.1.126.Final
  • [maven-release-plugin] prepare for next development iteration
  • Skip huge decompression test with leak detection (Skip huge decompression test with leak detection #15616) (Skip huge decompression test with leak detection (#15616) #15618)
  • Add test for OpenJdkSelfSignedCertGenerator (Add test for OpenJdkSelfSignedCertGenerator #15619) (Add test for OpenJdkSelfSignedCertGenerator (#15619) #15621)
  • Replace Java23 with Java24 for CI testing (Replace Java23 with Java24 for CI testing #15102) (Replace Java23 with Java24 for CI testing (#15102) #15158) (Replace Java23 with Java24 for CI testing (#15102) (#15158) #15623)
  • BouncyCastleAlpnSslUtils needs to use the correct SSLEngine class as … (BouncyCastleAlpnSslUtils needs to use the correct SSLEngine class as … #15628)
  • [maven-release-plugin] prepare release netty-4.1.127.Final
  • [maven-release-plugin] prepare for next development iteration
  • Bump BlockHound version to 1.0.14.RELEASE (Bump BlockHound version to 1.0.14.RELEASE #15641)
  • Update our ApacheDS Protocol DNS test dependency (Update our ApacheDS Protocol DNS test dependency #15640) (Update our ApacheDS Protocol DNS test dependency (#15640) #15643)
  • Drop unknown frame on missing stream in first packet (Drop unknown frame on missing stream in first packet #15646) (Drop unknown frame on missing stream in first packet (#15646) #15647)
  • OpenSSL: Retain context before using it in the engine constructor (OpenSSL: Retain context before using it in the engine constructor #15651)
  • Precompute segments offsets and use them as segment's identity (Precompute segments offsets and use them as segment's identity #15509) (Precompute segments offsets and use them as segment's identity (#15509) #15656)
  • Empty chunks cannot be used while allocating from the shared q (Empty chunks cannot be used while allocating from the shared q #15517) (Empty chunks cannot be used while allocating from the shared q (#15517) #15659)
  • Only register chunk sizes in adaptive allocator (Only register chunk sizes in adaptive allocator #15575) (Only register chunk sizes in adaptive allocator (#15575) #15663)
  • Fix concurrent chunk data write bug in adaptive allocator (Fix concurrent chunk data write bug in adaptive allocator #15652) (Fix concurrent chunk data write bug in adaptive allocator (#15652) #15664)
  • Kqueue: Ensure classes can be loaded even if native lib is not on the… (Kqueue: Ensure classes can be loaded even if native lib is not on the… #15673)
  • Epoll: Ensure classes can be loaded even if native lib is not on the … (Epoll: Ensure classes can be loaded even if native lib is not on the … #15675)
  • Remove usedMemory atomic counters on adaptive magazines (Remove usedMemory atomic counters on adaptive magazines #15677) (Remove usedMemory atomic counters on adaptive magazines (#15677) #15678)
  • TimeoutException: include description with timeout value (TimeoutException: include description with timeout value #15639) (TimeoutException: include description with timeout value (#15639) #15681)
  • update/cleanup codeql workflow (update/cleanup codeql workflow #15683) (update/cleanup codeql workflow (#15683) #15686)
  • Update jni-util version to clarify licensing (Update jni-util version to clarify licensing #15687) (Update jni-util version to clarify licensing (#15687) #15689)
  • Update to netty-tcnative 2.0.74.Final (Update to netty-tcnative 2.0.74.Final #15695) (Update to netty-tcnative 2.0.74.Final (#15695) #15697)
  • Bootstrap: Also include Channel type when logging of unsupported Chan… (Bootstrap: Also include Channel type when logging of unsupported Chan… #15705)
  • Native: Include error value when throwing NativeIoException in the me… (Native: Include error value when throwing NativeIoException in the me… #15704)
  • Fix how huge decompression was disabled (Fix how huge decompression was disabled #15711) (Fix how huge decompression was disabled (#15711) #15714)
  • Fix Snappy compression bug (Fix Snappy compression bug #15712) (Fix Snappy compression bug (#15712) #15715)
  • Use JDK25 build (Use JDK25 build #15718)
  • Update to run-on-arch-action@v3 (Update to run-on-arch-action@v3 #15668)
  • HTTP2: Remove outdated docs (HTTP2: Remove outdated docs #15720)
  • HTTP2 examples: update docs (HTTP2 examples: update docs #15724)
  • HTTP2 duplex examples: update docs (HTTP2 duplex examples: update docs #15725)
  • Avoid buffer duplication in AdaptiveByteBuf.setBytes (Avoid buffer duplication in AdaptiveByteBuf.setBytes #15728) (Avoid buffer duplication in AdaptiveByteBuf.setBytes (#15728) #15731)
  • Fix aligned off-heap zeroing (Fix aligned off-heap zeroing #15740) (Fix aligned off-heap zeroing (#15740) #15744)
  • Merge commit from fork
  • [maven-release-plugin] prepare release netty-4.1.128.Final
  • [maven-release-plugin] prepare for next development iteration
  • Re-enable reflective field accesses in native images (Re-enable reflective field accesses in native images #15774)
  • Update JDK versions to latest release (Update JDK versions to latest release #15789) (Update JDK versions to latest release (#15789) #15791)
  • Handle invalid content length in continue request (Handle invalid content length in continue request #15794)
  • Add a zero-delay option to AbstractReferenceCountedByteBufBenchmark (Add a zero-delay option to AbstractReferenceCountedByteBufBenchmark #15798)
  • Correct HTTP/2 padding length check (Correct HTTP/2 padding length check #15793) (Correct HTTP/2 padding length check (#15793) #15795)
  • Bump BlockHound version to 1.0.15.RELEASE (Bump BlockHound version to 1.0.15.RELEASE #15802)
  • Add 32k and 64k size classes to adaptive allocator (Add 32k and 64k size classes to adaptive allocator #15799) (Add 32k and 64k size classes to adaptive allocator (#15799) #15800)
  • IndexOutOfBoundsException when running mqtt tests on java 25 IndexOutOfBoundsException when running mqtt tests on java 25 #15804 (… (IndexOutOfBoundsException when running mqtt tests on java 25 #15804 (… #15810)
  • Fix reentrancy bug in ByteToMessageDecoder (Fix reentrancy bug in ByteToMessageDecoder #15834)
  • Fix SizeClasses comment (Fix SizeClasses comment #15841)
  • Make big endian ASCII hashcode consistent with little endian (Make big endian ASCII hashcode consistent with little endian #15846)
  • Upgrade all macOS Intel workflow runners to macOS 15 (Upgrade all macOS Intel workflow runners to macOS 15 #15840)
  • chore: Update javadoc of CompositeByteBuf#releaes method (chore: Update javadoc of CompositeByteBuf#releaes method #15864)
  • Use real, instead of synthetic, HTTP/2 stream id (Use real, instead of synthetic, HTTP/2 stream id #15842)
  • Fix flaky tests in codec-http module (Fix flaky tests in codec-http module #15862) (Fix flaky tests in codec-http module (#15862) #15892)
  • Fix ZstdEncoder not producing data when source is smaller than block … (Fix ZstdEncoder not producing data when source is smaller than block … #15894)
  • Fix Zstd compression for large data (Fix Zstd compression for large data #15861) (Fix Zstd compression for large data (#15861) #15900)
  • Mark AbstractEpollStreamChannel.spliceTo(...) methods as deprecated (… (Mark AbstractEpollStreamChannel.spliceTo(...) methods as deprecated (… #15916)
  • Use ServerBootstrap to bootstrap EpollServerSocketChannel (Use ServerBootstrap to bootstrap EpollServerSocketChannel #15912) (Use ServerBootstrap to bootstrap EpollServerSocketChannel (#15912) #15917)
  • Fix race condition in NonStickyEventExecutorGroup causing incorrect inEventLoop() results (Fix race condition in NonStickyEventExecutorGroup causing incorrect inEventLoop() results #15927)
  • Update lz4-java dependency with new group ID (Update lz4-java dependency with new group ID #15940) (Update lz4-java dependency with new group ID (#15940) #15943)
  • LocalChannel: Don't fire exception throught pipeline on connect failu… (#15952)
  • Socket: Fix handling of abstract namespaces on linux when creating th… (#15957)
  • SctpServerChannelConfig must support ChannelOption.SO_BACKLOG (#15965)
  • Discard the following HttpContent for preflight request (#15941) (#15962)
  • Close Channel and fail bootstrap when setting a ChannelOption causes … (#15970)
  • Pcap: Fix possible buffer leak when initializion fails (#15977)
  • Use exact length when allocating the acceptedAddress byte[] (#15973) (#15983)
  • Update lz4-java version to 1.10.1 (#15978) (#15981)
  • Fix Socket reading of abstract unix domain addresses (#16010) (#16012)
  • Merge commit from fork
  • Fix tests to compile with older JDK versions
  • [maven-release-plugin] prepare release netty-4.1.129.Final
  • [maven-release-plugin] prepare for next development iteration
  • Build fixes to allow using the epoll native transport on Android (#16… (#16019)
  • Fix MpscIntQueue bug (#16023) (#16027)
  • LocalChannel: Reduce GC by re-using same Runnable (#16014) (#16028)
  • Fix HTTP startline validation (#16022) (#16024)
  • Optimize HTTP startline validation (#16030) (#16042)
  • [maven-release-plugin] prepare release netty-4.1.130.Final
  • [maven-release-plugin] prepare for next development iteration
  • NioDatagramChannel.block(...) does not early return on failure (#16044) (#16046)
  • ChannelPipeline: Add tests for using ChannelHandlerContext and trigge… (#16066)
  • Improve exception message generated by EnhancingX509ExtendedTrustManager (#16056) (#16078)
  • Support for AWS Libcrypto (AWS-LC) netty-tcnative build (#15430) (#16081)
  • feat(netty-codec-http): more standard http content types (#16036) (#16121)
  • codec-dns: Decompress MX RDATA exchange domain names during DNS record decoding (#16040) (#16127)
  • Buddy allocation for large buffers in adaptive allocator (#16053) (#16132)
  • Bump BlockHound version to 1.0.16.RELEASE (#16134) (#16136)
  • Await termination of SslHandler executor (#16138) (#16140)
  • SslHandler: Only resume on EventLoop if EventLoop is not shutting down already (#16144) (#16149)
  • Fix leak in OpenSslPrivateKeyMethodTest (#16145) (#16147)
  • Wrap ECONNREFUSED in PortUnreachableException for UDP (#16131) (#16150)
  • Improve exception message when first HTTP2SettingsFrame has the ack f… (#16153) (#16154)
  • Bump com.ning:compress-lzf (4.1) (#16159)
  • SSL: Ensure used cipher in test can be used by any Java version (#16180) (#16185)
  • Update JDK versions to latest patch releases (#16184) (#16189)
  • Fix adaptive allocator bug from not noticing failed allocation (#16200) (#16202)
  • Avoid loosing original read exception (#16199) (#16204)
  • Update some dependencies (#16198)
  • Backport multiple adaptive allocator changes (#16219)
  • Update to netty-tcnative 2.0.75.Final (#16228)
  • [maven-release-plugin] prepare release netty-4.1.131.Final
  • [maven-release-plugin] prepare for next development iteration
  • Fix Incorrect nanos-to-millis conversion in epoll_wait EINTR retry lo… (#16248)
  • Make RefCntOpenSslContext.deallocate more robust (#16253) (#16257)
  • Update to gcc for arm 10.3-2021.07 (#16255) (#16263)
  • HTTP2: Correctly account for padding when decompress (#16265)
  • Update JDK versions to latest patch releases (#16254) (#16267)
  • Backport 4.1: Automatic backporting workflow from 4.1 to 4.2 (#16274)
  • Backport 4.1: Backport PRs must be created with personal access tokens (#16277)
  • Backport 4.1: Add more porting workflows (#16284)
  • Backport 4.1: Some polishing of the porting workflows (#16292)
  • Backport 4.1: Fix high-order bit aliasing in HttpUtil.validateToken (#16303)
  • Auto-port 4.1: Support more branch freedom for auto-porting (#16310)
  • fix: the precedence of + is higher than >> (#16312) (#16316)
  • AdaptiveByteBufAllocator: make sure byteBuf.capacity() not greater th… (#16320)
  • Auto-port 4.1: Fix flaky PooledByteBufAllocatorTest (#16324)
  • Auto-port 4.1: Fix pooled arena accounting tests (#16326)
  • Auto-port 4.1: Fix RunInFastThreadLocalThreadExtension (#16328)
  • Auto-port 4.1: AdaptivePoolingAllocator: call unreserveMatchingBuddy(...) if byteBuf initialization failed (#16331)
  • Auto-port 4.1: Mark LoggingHandlerTest with @isolated to fix flaky build (#16340)
  • Auto-port 4.1: Fix flaky HTTP/2 test (#16348)
  • Auto-port 4.1: Fix flaky RenegotiateTest (#16355)
  • Auto-port 4.1: Fix HTTP/2 push frame test (#16353)
  • SSL test: Don't depend on property value in test (#16346) (#16362)
  • Auto-port 4.1: Don't assume CertificateFactory is thread-safe (#16364)
  • AdaptivePoolingAllocator: assign a more explicit value to BuddyChunk.freeListCapacity (#16334) (#16368)
  • Auto-port 4.1: Add more diagnostic points to PooledByteBufAllocatorTest.createNewThr… (#16372)
  • Fix leak in SniHandlerTest (#16367) (#16377)
  • Auto-port 4.1: Stabilize AbstractByteBufTest.testBytesInArrayMultipleThreads (#16373)
  • Remove reference counting from size classed chunks (#16306) (#16379)
  • Auto-port 4.1: Stabilize AbstractByteBufTest.testToStringMultipleThreads (#16384)
  • Fix HttpObjectAggregator leaving connection stuck after 413 with AUTO… (#16280)
  • Auto-port 4.1: Fix autoport fetching into the existing branch - again (#16417)
  • Auto-port 4.1: Capture why threads get stuck in testCopyMultipleThreads0 (#16419)
  • Auto-port 4.1: Remove unnecessary array access in DefaultAttributeMap.orderedCopyOnInsert (#16421)
  • Auto-port 4.1: Whitelist JMH annotation processing in microbench module (#16430)
  • Auto-port 4.1: HTTP2: Ensure preface is flushed in all cases (#16432)
  • Auto-port 4.1: Fix UnsupportedOperationException in readTrailingHeaders (#16437)
  • Auto-port 4.1: Fix client_max_window_bits parameter handling in permessage-deflate extension (#16435)
  • Auto-port 4.1: Native transports: Fix possible fd leak when fcntl fails. (#16446)
  • Auto-port 4.1: Kqueue: Fix undefined behaviour when GetStringUTFChars fails and SO_ACCEPTFILTER is supported (#16448)
  • Auto-port 4.1: Kqueue: Possible overflow when using netty_kqueue_bsdsocket_setAcceptFilter(...) (#16459)
  • Auto-port 4.1: Native transports: Fix undefined behaviour when GetStringUTFChars fails while open FD (#16456)
  • Auto-port 4.1: Epoll: Add null checks for safety reasons (#16463)
  • Auto-port 4.1: DnsNameResolver: Skip test if we can not bind TCP and UDP to the same port (#16464)
  • Auto-port 4.1: Epoll: Use correct value to initialize mmsghdr.msg_namelen (#16467)
  • Auto-port 4.1: Epoll: Fix support for IP_RECVORIGDSTADDR (#16468)
  • Auto-port 4.1: AdaptivePoolingAllocator: remove ensureAccessible() call in capacity(int) method (#16475)
  • Auto-port 4.1: AdaptivePoolingAllocator: Fix assertion for size class multiple of 32 (#16497)
  • Epoll: setTcpMg5Sig(...) might overflow (#16511) (#16520)
  • Auto-port 4.1: JdkZlibDecoder: accumulate decompressed output before firing channelRead (#16532)
  • Limit the number of Continuation frames per HTTP2 Headers (#13969)
  • Stricter HTTP/1.1 chunk extension parsing (#16537)
  • [maven-release-plugin] prepare release netty-4.1.132.Final
  • [maven-release-plugin] prepare for next development iteration
  • Fix IndexOutOfBoundsException in StompSubframeDecoder on heartbeat (#16539)
  • Auto-port 4.1: Fix implementation of strerror_r_xsi for GNU (#16561)
  • Auto-port 4.1: Replace usage of strerror with thread-safe alternative (#16555)
  • Auto-port 4.1: Kqueue: sendfile EINTR doesn't advance offset — data duplication (#16554)
  • Auto-port 4.1: Avoid leak in PemReader on OutOfDirectMemoryError (#16576)
  • Auto-port 4.1: Native DNS resolver: Guard against malloc failures (#16584)
  • Auto-port 4.1: Include user properties and subscription IDs in MqttProperties#isEmpty (#16582)
  • Auto-port 4.1: Fix parsing HTTP chunks with multiple extensions (#16588)
  • Auto-port 4.1: Stabilize read-only toStringMultipleThreads1 (#16610)
  • Auto-port 4.1: Epoll: Cleanup code to always return negative value on failure (#16601)
  • Auto-port 4.1: Stabilize more AbstractByteBufTests (#16613)
  • Auto-port 4.1: Stabilize testSessionInvalidate for Conscrypt (#16616)
  • Auto-port 4.1: Native transports: Correctly create pipe when pipe2 is not supported (#16598)
  • Use stream error for maxContentLength exceeded in InboundHttp2ToHttpAdapter (#16558)
  • Fix shutdownInput bug in kqueue for empty recv buffer (#16630) (#16638)
  • Auto-port 4.1: Kqueue: Fix usage of LOCAL_PEERPID (#16646)
  • Auto-port 4.1: HTTP2: Ensure HTTP2 preface is always send as first message (#16642)
  • Auto-port 4.1: Propagate exceptions from inner threads in buffer tests (#16652)
  • Auto-port 4.1: Add maxFrameLength support to ProtobufVarint32FrameDecoder (#16658)
  • Auto-port 4.1: Bump up netty-tcnative to 2.0.76.Final (#16672)
  • HTTP2: Ensure HTTP2 preface is always send as first message (also on … (#16675)
  • Improve flaky NioSocketChannelTest (#16679) (#16681)
  • Deprecate ObjectCleaner and remove usage (#16685) (#16694)
  • Auto-port 4.1: Update to netty-tcnative 2.0.77.Final (#16695)
  • Avoid NPE in JdkSslServerContext when TrustManagerFactory returns null (#16691)
  • Avoid NPE in JdkSslClientContext when TrustManagerFactory returns null (#16690)
  • Auto-port 4.1: Avoid TCPFastOpen in KQueueCompositeBufferGatheringWriteTest (#16699)
  • Auto-port 4.1: SCTP: Correctly handle SO_BACKLOG (#16715)
  • Fix DiscardClient hang under -Dssl by using a client SSL context (#16717)
  • Auto-port 4.1: Consolidate fake exceptions in HTTP/2 tests into Http2TestUtil (#16725)
  • Auto-port 4.1: Activate noPrintGC by default (#16735)
  • Merge commit from fork (#16742)
  • Merge commit from fork
  • Merge commit from fork
  • Fix DataCompressionHttp2Tests after merge from fork
  • Merge commit from fork
  • Merge commit from fork
  • Merge commit from fork
  • Merge commit from fork
  • Fix checkstyle in HttpObjectDecoder
  • Merge commit from fork
  • Fix codec-dns tests
  • Merge commit from fork
  • Fix BrotliDecoder not forwarding all decompressed chunks
  • Merge commit from fork
  • Merge commit from fork
  • Fix compilation after multiple backports
  • [maven-release-plugin] prepare release netty-4.1.133.Final
  • [maven-release-plugin] prepare for next development iteration
  • Auto-port 4.1: HTTP: Re-add constructor to HttpProxyHandler that was removed by mistake (#16750)
  • Auto-port 4.1: Marshalling: Explicit document security requirements (#16754)
  • Pin HTTP/RTSP version + method normalization to Locale.US (#16765) (#16770)
  • Adaptive: Fix concurrency issue in adaptive allocator (#16767) (#16778)
  • Pin multipart Content-Type / Content-Transfer-Encoding case folding t… (#16784)
  • Auto-port 4.1: Remove dead native declarations (#16785)
  • Avoid re-parsing openssl key material with non-cached provider (#16759) (#16791)
  • Isolate tests that modify available Security providers (#16793) (#16805)
  • Auto-port 4.1: Remove test annotations from a method that isn't a test (#16798)
  • Auto-port 4.1: IpFilter: Fix ClassCastException caused by IpSubnetFilter if only ipv6 rules are configured but remote peer is using ipv4 (#16822)
  • Resolve all localhost addresses without querying DNS servers (#16749) (#16820)
  • Auto-port 4.1: HTTP2: Use 100 as default max concurrent streams setting (#16816)
  • Auto-port 4.1: Route synchronous onLookupComplete exceptions via fireExceptionCaught (#16824)
  • Auto-port 4.1: Fix MQTT decoder size check after variable header replay (#16838)
  • [maven-release-plugin] prepare release netty-4.1.134.Final
  • [maven-release-plugin] prepare for next development iteration
  • Auto-port 4.1: MQTT: Allow MQTT 5 CONNECT with password only (#16834)
  • ChannelInitializer: correct misleading comment on exceptionCaught route (#16847)
  • HTTP/2: Parse request-target path like Vert.x (4.1 backport) (#16856)
  • HttpObjectDecoder skips arbitrary initial control characters when only initial CRLF characters are permitted (#16861)
  • IpSubnetFilter: Correctly handle ipv6 (#16860)
  • Configurable bound on RedisArrayAggregator (#16858)
  • Redis: Limit decoded length (#16859)
  • DNS: Ensure query id is not predictible (#16870)
  • Wrapping plain trust manager silently disables hostname verification (#16868)
  • MQTT: Reject malformed no-payload packets with non-zero Remaining Length (#16852)
  • Fix revapi warnings (#16885) (#16892)
  • HAProxy: Reject HAProxyMessages with malformated TLV and not leak memory (#16866)
  • SSL: Use sane defaults as limits for the client hello length and timeout (#16871)
  • DNS: Only cache CNAME if part of the queried domain (#16873)
  • HTTP/2: Enforce max concurrent streams for misbehaving clients (#16876)
  • Dns: Insufficient Bailiwick Validation for NS Records (#16877)
  • HTTP2: DelegatingDecompressorFrameListener must release memory in all cases (#16880)
  • Pass maxAllocation to Brotli and Zstd decoders (#16844) (#16886)
  • HTTP/2: Treat clients MAX_HEADER_LIST_SIZE as advisory (#16883)
  • Auto-port 4.1: Add maxWindowLog parameter to ZstdDecoder to bound memory allocation (#16894)
  • HAProxy: Fix ByteBuf leak when parsing nested SSL TLVs (#16881)
  • Epoll / Kqueue: Correctly handle receive of FD (#16872)
  • SCTP: Limit the number of inflight incomplete SCTP messages and the number of fragments (#16875)
  • Redis: Correctly release incomplete message on removal when using RedisArrayAggregator (#16878)
  • Redis: Limit the maximum number of nested arrays (#16882)
  • [maven-release-plugin] prepare release netty-4.1.135.Final
  • [maven-release-plugin] prepare for next development iteration
  • SingleThreadEventExecutor: document Throwable safety contract on run() (#16814)
  • Make HTTP/2 frame hashCode consistent with equals (#16692)
  • Add BlockHound exception for DnsQueryIdSpace (#16896) (#16915)
  • FlowControlHandler: Fix autoRead behavior (#16912)
  • Auto-port 4.1: Fix incorrect bounds in error message of HpackDecoder.setMaxHeaderListSize (#16911)
  • MQTT: Fix MQTT decoder size check after variable header replay (#16916)
  • MQTT: Make the decodeProperties early-REPLAY check actually fire (#16813)
  • Reject control characters at the boundary of HTTP method names (#16723) (#16933)
  • Auto-port 4.1: Update to latest tcnative release (#16941)
  • Auto-port 4.1: Fix HTTP 2 PUSH_PROMISE stream association validation (#16955)
  • Auto-port 4.1: Fix GZIP FEXTRA extra-field handling in JdkZlibDecoder (#16957)
  • Auto-port 4.1: Add opt-in validation of mandatory pseudo-header fields for HTTP/2 (#16964)
  • Strictly validate MQTT UTF-8 Encoded String (#16939) (#16965)
  • Auto-port 4.1: Stop DateFormatter trailing token from running past the parse end (#16968)
  • Auto-port 4.1: IpFilter: Deprecate constructor which use accept by default (#16973)
  • Add RFC 10008 QUERY Method support (#16966) (#16978)
  • Correctly release and fail queued traffic-shaping writes on close (#16959) (#16976)
  • Auto-port 4.1: FlowControlHandler: respect auto-read when toggled while dequeueing (#16983)
  • IdleStateHandler: reset firstWriter/ReaderIdleEvent in resetWriteTimeout/resetReadTimeout (#16982) (#16989)
  • Auto-port 4.1: Fix typo in AbstractSniHandler Javadoc (#16995)
  • Auto-port 4.1: Reconcile AbstractCoalescingBufferQueue readableBytes when it drains, and fail stuck HTTP/2 streams instead of spinning empty DATA frames (#16997)
  • Reject control characters at the boundary of the HTTP version token (#16971) (#16986)
  • Auto-port 4.1: Reset UTF-8 decode state on CR in StompSubframeDecoder (#17003)
  • Auto-port 4.1: HTTP2: Pass the correct number of arguments when logging goaway (#17017)
  • FastLz: Guard decompression against truncated input (#17000) (#17015)
  • Backport 4.1 Fix propagation of startTls for client SslContext handler (#17020)
  • Auto-port 4.1: Reject non-token characters in HTTP/2 header names (#17022)
  • Update lz4-java to 1.11.1 (#17060)
  • Pin github actions to reduce risk (#17043) (#17044)
  • Merge branches from forks (#17063) (#17065)
  • [maven-release-plugin] prepare release netty-4.1.136.Final
  • [maven-release-plugin] prepare for next development iteration
  • Auto-port 4.1: AsciiString.cached(String) should sanitize the provided String (#13749) (#17069)
  • AsciiString.cached(String) should sanitize the provided String (#13749) (#17007) (#17075)
  • ** Fix AsciiString.cached(String) performance regression (#17074) (#17080)**
  • Auto-port 4.1: SslHandler: Fix possible buffer leak when an OOME is thrown during allocation (#17078)
  • ** Fix AsciiString.cached(String) performance regression (#17074) (#17083)**
  • Fix deploy workflow
  • Auto-port 4.1: Add HttpContentCompressor constructor with ability to specify desired maxPipelineDepth (#17085)
  • Auto-port 4.1: Fix AdaptiveByteBuf._setLongLE calling checked setLongLE (#17102)
  • Auto-port 4.1: Reject negative maxOrder in PooledByteBufAllocator (#17095)
  • Auto-port 4.1: Snappy: Guard decoder against invalid chunk lengths (#17110)
  • Backport #16079 and #17114 (#17134)
  • Auto-port 4.1: Use safe decompressor in Lz4FrameDecoder (#17121)
  • Auto-port 4.1: Configure TestLens for the PR builds (#17133)
  • Fix maxAllocation for brotli-encoded content in HttpContentDecompress… (#17124)
  • Propagate the CI envionment variables through to the docker builds (#… (#17143)
  • Auto-port 4.1: fix(mqtt): drop UNSUBACK reason codes for MQTT 3.x encoding (#17137)
  • Fix buddy cache evicting chunks with live buffers (#17154) (#17176)
  • Auto-port 4.1: Avoid classloader leak via GlobalEventExecutor terminationFuture failure (#17189)
  • Auto-port 4.1: HttpObjectEncoder / DefaultHttp2FrameWriter: fix buffer leak when a Throwable is thrown during header encoding (#17178)
  • BrotliEncoder: Prevent duplicate close scheduling (#17175) (#17193)
  • Auto-port 4.1: Update compress-lzf to 1.2.1 (#17197)
  • Do not write WebSocket handshake response to the tail of the pipeline (#17192) (#17200)
  • HttpServerCodec: do not consume the method queue for 1xx interim responses (#17182) (#17203)
  • Adaptive allocator backports (#17206)
  • Weakly reference engines from the OpenSSL engine map (#17199) (#17205)
  • Auto-port 4.1: Add .editorconfig to enforce consistent coding style (#17209)
  • Update surefire plugin to latest version (#17210) (#17212)
  • Update to latest netty-tcnative release (#17056) (#17122)
  • Merge changes from forks (#17213) (#17217)
  • [maven-release-plugin] prepare release netty-4.1.137.Final
  • [maven-release-plugin] prepare for next development iteration
  • Auto-port 4.1: Use X509ExtendedTrustManager in SSLErrorTest (#17224)
  • Auto-port 4.1: Validate chunked-must-be-last regardless of HTTP version (#17228)
  • Update junit version (#17233)
  • Auto-port 4.1: Add system property to disable RFC 6761 localhost resolution (#17230)
  • Update setup-testlens to v1.9.4 (#17223) (#17229)
  • Auto-port 4.1: Adjust failsafe plugin version to be in sync with surefire plugin (#17241)
  • Auto-port 4.1: Release unsent LastHttpContent in HttpChunkedInput (#17251)
  • Auto-port 4.1: HTTP/2: Release compressors after failed headers writes (#17265)
  • Auto-port 4.1: HTTP/2: Prevent reentrant flush on writability change (#17268)
  • Respect max messages per read in LocalServerChannel (#17255) (#17269)
  • Auto-port 4.1: HTTP: Preserve encoder state after header encoding failures (#17275)
  • Bzip2: Correctly detect overflow during block size bound check (#17261) (#17273)
  • Auto-port 4.1: HTTP/2: Drain queued frames stranded by a writability change during flush (#17280)
  • Port to 4.1: Add clock skew tolerance to OcspServerCertificateValidator (#17282)
  • Extract Bootstrap and ServerBootstrap setup to a common method (#15134) (#17289)
  • Release channel when FixedChannelPool acquire is cancelled (#17287) (#17291)
  • Auto-port 4.1: HTTP: Release content encoder after header mutation failure (#17294)
  • Auto-port 4.1: Add a script that can download GHSA vulnerability reports (#17302)
  • Auto-port 4.1: FileRegion: Remove outdated JDK upgrade warning (#17311)
  • Auto-port 4.1: codec-dns: Fix query OPCODE bit offset and mask (#17316)
  • Auto-port 4.1: Install patchelf as part of awslc docker image generation (#17322)
  • Auto-port 4.1: POOL: Close active unhealthy channels on release (#17319)
  • Update to use graal 21 (#17327)
  • Auto-port 4.1: Add more logging to CompositeBufferGatheringWriteTest to help diagnose flaky test (#17329)
  • Fix graal docker file usage (#17333)
  • Auto-port 4.1: codec-dns: Report and allow setting full 16-bit EDNS(0) flags field (#17332)
  • Kqueue: Continue reading when EOF is received before notify about channel inactivity (#17309)
  • Auto-port 4.1: Fix MQTT 5 properties length decoding for multi-byte Property Length (4.2 branch) (#17338)
  • Auto-port 4.1: Increase timeout in test to address flakyness (#17345)
  • Auto-port 4.1: DatagramUnicastIpv6MappedTest should explicit bind to ipv4 address to make test less flaky (#17347)
  • Close Channel when connect is cancelled during resolution (#17321) (#17349)
  • Auto-port 4.1: Channel: Add unit tests for AbstractChannel edge-case failures and buffer releases (#17351)
  • Auto-port 4.1: Http2: Cleanup child channel method signatures (#17355)
  • Auto-port 4.1: Update to latest netty-tcnative release (#17361)
  • Auto-port 4.1: Update to latest netty-jni-util release (#17365)
  • Fix JdkZlibDecoder silently truncating highly compressible streams (#17364)
  • Auto-port 4.1: ByteBufUtil.HexUtil.HEXDUMP_TABLE array length 256*2 is enough (#17369)
  • Auto-port 4.1: Update to latest netty tcnative version (#17398)
  • HTTP/2: Enable header value validation by default
  • Validate SMTP command name for CRLF to prevent command injection
  • MQTT: Strict bounds checking against max message size
  • HTTP/1.1: Fix chunk size parsing
  • RedisArrayAggregator nested RESP headers multiply patched preallocation limits
  • HTTP/1 absolute-form Host mismatch is translated to HTTP/2 :authority, overriding the request-target authority
  • Fix Extended CONNECT (RFC 8441/9220) downgrade issue in both codec-http2 and codec-http3:
  • HTTP/1 CONNECT target is mistranslated to malformed HTTP/2 CONNECT and Host-controlled :authority
  • RTSP: RtspMethods.valueOf() silently strips trailing control bytes
  • HAProxy PROXY-v2 nested-TLV grandchild ByteBuf reference-count leak
  • Bound the accumulated size of multi-line SMTP responses
  • Reject invalid request Transfer-Encoding framin
  • Fix frame desynchronization in the binary memcache decoder
  • STOMP codec content-length long-to-int truncation causes infinite decode loop DoS
  • WebSockets: Enforce a limit for the max pipelined requests in WebSocketServerExtensionHandler
  • STOMP: Correctly release partial content on handler removal
  • HTTP/2: Limit HPACK encoding table size
  • HTTP: Limit the maximum number of concurrent pipelined requests
  • SPDY: SpdySessionHandler must limit the concurrent streams
  • Verify id-kp-OCSPSigning EKU on delegated OCSP responder certificates
  • OCSP: Correctly handle that nextUpdate is optional
  • [maven-release-plugin] prepare release netty-4.1.138.Final
  • [maven-release-plugin] prepare for next development iteration
  • Auto-port 4.1: perf: Use LinkedHashSet to deduplicate search domains (#17407)
  • Auto-port 4.1: Handle non-positive skip lengths in ByteBufInputStream (#17410)
  • Protobuf: Update protobuf-javanano to non alpha release (#17330) (#17335)
  • Socket: Add half-closure tests to SocketHalfClosedTest (#17394) (#17434)
  • Auto-port 4.1: HttpUtil.getCharset() must accept whitespace before the next Content-Type parameter (#17436)
  • Auto-port 4.1: codec-dns: Add SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC, ZONEMD records (#17459)
  • Update GitHub Actions to Node.js 24 to fix deprecation warning (#17488)
  • Remove not used tools from docker image (#17490)
  • Auto-port 4.1: HttpUtil.getMimeType() must not include whitespace before the next Content-Type parameter (#17494)
  • Auto-port 4.1: Fix buffer leak when recvmmsg returns single UDP_GRO batch (#17500)
  • Auto-port 4.1: Guard ChunkedWriteHandler.doFlush() against re-entrant invocation from user code (#17501)
  • Auto-port 4.1: Add regression test for close() cascade reentering flush() (#17505)
  • Port: Fix UDP_GRO segment size is lost when reading with recvmmsg (#17492) (#17506)
  • Auto-port 4.1: Make CompositeBufferGatheringWriteTest robust against write/close race (#17510)
  • Auto-port 4.1: Add workflow that will cancel running workflows for merged PRs (#17519)
  • Auto-port 4.1: Harden DnsNameResolverTest against transient null localAddress from TestDnsServer (#17522)
  • Cache docker build images in ghcr.io to speed up CI for 4.1 (#17533)
  • Auto-port 4.1: HTTP/2: Remove failed SETTINGS from ACK queue (#17534)
  • Port: Fix compilation on latest macOS 27.0 (#17529) (#17542)
  • Http2ConnectionRoundtripTest: Reduce timing sensitivity to fix CI flakiness (#17540) (#17552)
  • Auto-port 4.1: ProtobufVarint32FrameDecoder must wait for more data when the length prefix is incomplete (#17553)
  • Auto-port 4.1: Fix missing readable-bytes check in SmtpResponseDecoder (#17556)
  • Auto-port 4.1: Guard against out-of-bounds reads when parsing ClientHello SNI extension (#17558)
  • DnsAddressResolverGroupTest: Use a mock DNS server instead of resolving netty.io over the network

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
netty-project-bot and others added 30 commits March 16, 2026 09:16
@netty-project-bot @normanmaurer
Auto-port 4.1: Epoll: Use correct value to initialize mmsghdr.msg_nam…
779fce7
…elen (#16467)

Auto-port of #16460 to 4.1
Cherry-picked commit: 29a5efc

---
Motivation:

We did use the incorrect value for the msg_namelen and so could in
theory result in an overflow if the kernel really use this value for the
last element.

Modifications:

Use correct value

Result:

No risk of overflow during recvmmsg

Co-authored-by: Norman Maurer <[email protected]>
@netty-project-bot @normanmaurer
Auto-port 4.1: Epoll: Fix support for IP_RECVORIGDSTADDR (#16468)
5a0072b
Auto-port of #16461 to 4.1
Cherry-picked commit: d97f5e6

---
Motivation:

We incorrectly used the return value of
netty_unix_socket_getOption(...,IP_RECVORIGDSTADDR) and so did not
correctly support IP_RECVORIGDSTADDR when using recvmmsg.

Modifications:

- Correctly use the return value and also validate that the socket
option is actually set before allocating the control message buffer.

Result:

Fix support of IP_RECVORIGDSTADDR when using recvmmsg

Co-authored-by: Norman Maurer <[email protected]>
@netty-project-bot @laosijikaichele
Auto-port 4.1: AdaptivePoolingAllocator: remove ensureAccessible() …
3ac3f37
…call in `capacity(int)` method (#16475)

Auto-port of #16473 to 4.1
Cherry-picked commit: 2ac5bf4

---
Motivation:

In `AdaptivePoolingAllocator.capacity(int)`, the call to
`checkNewCapacity(newCapacity)` already invokes `ensureAccessible()`
internally, making the explicit `ensureAccessible()` call redundant.

Modification:

Remove the redundant `ensureAccessible()` call from the `capacity(int)`
method.

Result:

Reducing unnecessary overhead.

Co-authored-by: old driver <[email protected]>
@netty-project-bot @laosijikaichele
Auto-port 4.1: AdaptivePoolingAllocator: Fix assertion for size class…
692ec87
… multiple of 32 (#16497)

Auto-port of #16474 to 4.1
Cherry-picked commit: b029a2c

---
Motivation:

The assertion validating `SIZE_CLASSES` is a multiple of 32 used the
wrong bit-mask: `(sizeClass & 5) == 0`, so values like 10 will pass the
assertion.

Modification:

Changed to `(sizeClass & 31) == 0`.

Result:

Invalid size class can now correctly caught in assertion environment.

Co-authored-by: old driver <[email protected]>
@normanmaurer
Epoll: setTcpMg5Sig(...) might overflow (#16511) (#16520)
df65997
Motivation:

We did not check that the provided byte[] will fin into tcpm_key and so
might overflow

Modifications:

Add length check and if it does not fit throw

Result:

No risk of overflow
@netty-project-bot @franz1981
Auto-port 4.1: JdkZlibDecoder: accumulate decompressed output before …
10c1603
…firing channelRead (#16532)

Auto-port of #16510 to 4.1
Cherry-picked commit: a7fbb6f

---
Motivation:

A recent change (9d804c5) changed
JdkZlibDecoder to fire
ctx.fireChannelRead() on every inflate iteration (~8KB output) when
maxAllocation is 0. For a typical ~150KB HTTP response this produces
~19 small buffer allocations and ~19 pipeline dispatches through the
internal EmbeddedChannel used by HttpContentDecoder, causing a 30-35%
throughput regression even in aggregated mode (where chunk count is
irrelevant downstream).

Modifications:

Accumulate decompressed output up to 64KB (DEFAULT_MAX_FORWARD_BYTES)
before firing ctx.fireChannelRead(). The buffer grows naturally via
prepareDecompressBuffer() until the threshold, then fires and starts a
new buffer. Any remaining data fires in the finally block as before.

Memory per in-flight buffer is bounded to 64KB regardless of the
compressed input size.

Result:

Throughput is restored to pre-regression levels. Chunks per response
drop from ~163 to ~6 for a 150KB payload.

Co-authored-by: Francesco Nigro <[email protected]>
@normanmaurer @bryce-anderson @chrisvest
Limit the number of Continuation frames per HTTP2 Headers (#13969)
9f47a7b
Motivation:

We should limit the number of continuation frames that the remote peer
is allowed to sent per headers.

Modifications:

- Limit the number of continuation frames by default to 16 and allow the
user to change this.
- Add unit test

Result:

Do some more validations to guard against resource usage

---------

Co-authored-by: Bryce Anderson <[email protected]>
Co-authored-by: Chris Vest <[email protected]>
@chrisvest
Stricter HTTP/1.1 chunk extension parsing (#16537)
60e53c9
Motivation:
Chunk extensions can include quoted string values, which themselves can
include linebreaks and escapes for quotes. We need to parse these
properly to ensure we find the correct start of the chunk data.

Modification:
- Implement full RFC 9112 HTTP/1.1 compliant parsing of chunk start
lines.
- Add test cases from the Funky Chunks research:
https://w4ke.info/2025/10/29/funky-chunks-2.html
- This inclues chunk extensions with quoted strings that have linebreaks
in them, and quoted strings that use escape codes.
- Remove a test case that asserted support for control characters in the
middle of chunk start lines, including after a naked chunk length field.
Such control characters are not permitted by the standard.

 Result:
Prevents HTTP message smuggling through carefully crafted chunk
extensions.

* Revert the ByteProcessor changes

* Add a benchmark for HTTP/1.1 chunk decoding

* Fix chunk initial line decoding

The initial line was not correctly truncated at its line break and ended
up including some of the chunk contents.

* Failing to parse chunk size must throw NumberFormatException

* Line breaks are completely disallowed within chunk extensions

Change the chunk parsing back to its original code, because we know that
line breaks are not supposed to occur within chunk extensions at all.
This means doing the SWAR search should be suitable.

Modify the byte processor and add it as a validation step of the parsed
chunk start line.

Update the tests to match.

* Fix checkstyle

(cherry picked from commit 3b76df1)
@netty-project-bot
[maven-release-plugin] prepare release netty-4.1.132.Final
ec119d4
@netty-project-bot
[maven-release-plugin] prepare for next development iteration
5fa9acb
@daguimu
Fix IndexOutOfBoundsException in StompSubframeDecoder on heartbeat (#…
6f6ac4b
…16539)

## Problem

`StompSubframeDecoder.skipControlCharacters()` reads bytes in an
infinite loop without checking if the buffer has readable bytes
remaining. When a STOMP heartbeat frame (just a LF byte) arrives, the
method consumes the control character and then attempts to read beyond
the buffer, causing an IndexOutOfBoundsException.

## Root Cause

The `skipControlCharacters` method has an unconditional
`buffer.readByte()` call inside a `for (;;)` loop with no
`buffer.isReadable()` guard. When the buffer contains only control
characters (heartbeat), all bytes are consumed and the next `readByte()`
fails.

## Fix

Add a `buffer.isReadable()` check before each `readByte()` call. When
the buffer is exhausted (heartbeat-only data), the method returns
gracefully and the decoder waits for more data.

## Tests Added

- `testHeartbeatOnlyDoesNotThrowException` - Single LF heartbeat byte
does not cause exception
- `testMultipleHeartbeatsDoNotThrowException` - Multiple consecutive LF
bytes handled correctly
- `testCarriageReturnLineFeedHeartbeat` - CR+LF heartbeat handled
correctly
- `testHeartbeatFollowedByFrame` - Heartbeat before a real STOMP frame,
frame decodes correctly
- `testHeartbeatBetweenFrames` - Heartbeat between two frames, both
decode correctly
- `testHeartbeatSentSeparatelyThenFrame` - Heartbeat in separate write,
then frame in second write

## Impact

Minimal - only adds a single `isReadable()` guard. No behavioral change
for normal STOMP frames.

Fixes #10678
@netty-project-bot @normanmaurer
Auto-port 4.1: Fix implementation of strerror_r_xsi for GNU (#16561)
ff23761
Auto-port of #16546 to 4.1
Cherry-picked commit: 1fda0d5

---
Motivation:

We did not clear errno before calling strerror_r(...) and then later use
it to detect if there was an error. This could lead to false-positives
as strerror_r(...) does not set errno to 0 on success.

Modifications:

Set errno to 0 before calling strerror_r

Result:

Correct implement strerror_r_xsi for GNU

Co-authored-by: Norman Maurer <[email protected]>
@netty-project-bot @normanmaurer
Auto-port 4.1: Replace usage of strerror with thread-safe alternative (…
cab4efd
…#16555)

Auto-port of #16547 to 4.1
Cherry-picked commit: cd92804

---
Motivation:

We used strerror(...) when generating the exception that was thrown via
JNI. Unfortunally strerror(...) is not thread-safe as it uses a static
buffer internally which could lead to corrupted exception messages.

Modifications:

- strerror() is replaced with strerror_r_xsi() — the thread-safe wrapper
already defined in this file

Result:

No more corrupted exception messages thrown by JNI

Co-authored-by: Norman Maurer <[email protected]>
@netty-project-bot @normanmaurer
Auto-port 4.1: Kqueue: sendfile EINTR doesn't advance offset — data d…
d4fb9e5
…uplication (#16554)

Auto-port of #16544 to 4.1
Cherry-picked commit: 55a27f5

---
Motivation:

BSD/macOS sendfile passes the offset by value (unlike Linux which takes
off_t*).
When interrupted (EINTR), sbytes reports how many bytes were sent before
the signal.

Modifications:

- Advance off so the next iteration resumes from where we left off, not
from the start.

Result:

Fix possible data corruption when using sendfile and EINTR is observed

Co-authored-by: Norman Maurer <[email protected]>
@netty-project-bot @raipc @normanmaurer
Auto-port 4.1: Avoid leak in PemReader on OutOfDirectMemoryError (#16576
8eef9c8
)

Auto-port of #16551 to 4.1
Cherry-picked commit: 35ade4a

---
Motivation:

Avoid direct buffers leak if exception thrown during PEM file parsing
and release unpooled buffers to improve pool metrics

Modification:

1. on exception, release all already allocated certificates in `certs`
list
2. release unpooled base64 repr in a finally block

Result:

Fixes #16549

---------

Co-authored-by: Anton Rybochkin <[email protected]>
Co-authored-by: Norman Maurer <[email protected]>
@netty-project-bot @normanmaurer
Auto-port 4.1: Native DNS resolver: Guard against malloc failures (#1…
7eb496a
…6584)

Auto-port of #16559 to 4.1
Cherry-picked commit: 211accf

---
Motivation:

We missed to guard against malloc failures which could lead to UB.

Modifications:

Add guard against malloc failures

Result:

More robust implementation of createDynamicMethodsTable(...) and no UB

Co-authored-by: Norman Maurer <[email protected]>
@netty-project-bot @ShadowySpirits @normanmaurer
Auto-port 4.1: Include user properties and subscription IDs in MqttPr…
c355278
…operties#isEmpty (#16582)

Auto-port of #16575 to 4.1
Cherry-picked commit: 4a6b875

---
Motivation:

MqttProperties.isEmpty() only checks the regular property map.

Modification:

Update MqttProperties.isEmpty() so it also considers userProperties and
subscriptionIds.

Result:

Fixes #16574

---------

Co-authored-by: SSpirits <[email protected]>
Co-authored-by: Norman Maurer <[email protected]>
@netty-project-bot @chrisvest @normanmaurer
Auto-port 4.1: Fix parsing HTTP chunks with multiple extensions (#16588)
0841072
Auto-port of #16579 to 4.1
Cherry-picked commit: b2c0dfd

---
Motivation:
The chunk extension parsing/validation logic did not correctly account
for extensions with multiple key-value pairs.

Modification:
- Adapt parsing logic to accept the repeatability of extension key-value
pairs, and that chunk extensions can end on unquoted value tokens.
- Add tests to capture these cases.

Result:
More correct HTTP chunk extension parsing.

The tests are lifted from #16542

Co-authored-by: Chris Vest <[email protected]>
Co-authored-by: Norman Maurer <[email protected]>
@netty-project-bot @chrisvest
Auto-port 4.1: Stabilize read-only toStringMultipleThreads1 (#16610)
1fd6b91
Auto-port of #16608 to 4.1
Cherry-picked commit: 8984978

---
Motivation:
In #16380 we increased the timeout of
this test. However, `ReadOnlyDirectByteBufTest` does not inherit from
AbstractBtyeBufTest and instead has its own version. We did not increase
the timeout of this version.

Modification:
Increase the timeout of the read-only ByteBuf version of the test, to
match what we use for all other buffer types.

Result:
More stable build.

Co-authored-by: Chris Vest <[email protected]>
@netty-project-bot @normanmaurer
Auto-port 4.1: Epoll: Cleanup code to always return negative value on…
9afacfe
… failure (#16601)

Auto-port of #16591 to 4.1
Cherry-picked commit: ec36e8c

---
Motivation:

We usually use a negative value in case of an error but did not in one
case. While this does not really matters in practise as weput an
exception on the call stack we should be consistent.

Modifications:

Return negative value on fcntl failure

Result:

More consistent code base

Co-authored-by: Norman Maurer <[email protected]>
@netty-project-bot @chrisvest
Auto-port 4.1: Stabilize more AbstractByteBufTests (#16613)
81d9666
Auto-port of #16611 to 4.1
Cherry-picked commit: 5f019e7

---
Motivation:
We have a mix of different timeout approaches going on. We should settle
on 30+ seconds minimum, because on busy CI runners it can take seconds
to start new threads.

Modification:
Make some test barrier awaits unbounded and instead rely on `@Timeout`
annotations on the tests. Increase the timeouts to 30 seconds, from 10.

Result:
More stable build.

Co-authored-by: Chris Vest <[email protected]>
@netty-project-bot @chrisvest
Auto-port 4.1: Stabilize testSessionInvalidate for Conscrypt (#16616)
7c02257
Auto-port of #16615 to 4.1
Cherry-picked commit: b2662ca

---
Motivation:
For TLSv1.3 I think Conscrypt only adds sessions to its cache once the
NewSessionTicket has been issued, and attempts to invalidate the session
before this point has no effect, which made the test flaky.

Modification:
Add rounds of packet transfers to the test to ensure that TLSv1.3 always
issues NewSessionTicket messages prior to the invalidation of the
session.

Result:
More stable build.

Co-authored-by: Chris Vest <[email protected]>
@netty-project-bot @normanmaurer @chrisvest
Auto-port 4.1: Native transports: Correctly create pipe when pipe2 is…
d9c0c10
… not supported (#16598)

Auto-port of #16592 to 4.1
Cherry-picked commit: 1b9e868

---
Motivation:

We incorrectly used F_SETFD to try to set the fd to non blocking when
pipe2 is not supported. This is not correct as we need to use F_SETFL.

Modifications:

- Get current flags and add O_NONBLOCK via F_SETFL

Result:

Pipe is correctly set to non blocking mode even if pipe2 is not
supported

Co-authored-by: Norman Maurer <[email protected]>
Co-authored-by: Chris Vest <[email protected]>
@daguimu
Use stream error for maxContentLength exceeded in InboundHttp2ToHttpA…
d8dd805
…dapter (#16558)

Motivation:

When a message payload exceeds `maxContentLength` in
`InboundHttp2ToHttpAdapter`, a connection error (`INTERNAL_ERROR`) is
thrown. This sends a GOAWAY frame that closes the entire HTTP/2
connection, affecting all concurrent streams. Load balancers often treat
GOAWAY as a 5xx error, even though this is a client-side issue (sending
a payload that is too large). Exceeding the content length for a single
stream should only affect that stream.

Modification:

Changed the error from `connectionError(INTERNAL_ERROR)` to
`streamError(streamId, ENHANCE_YOUR_CALM)` in `onDataRead()`. The
`ENHANCE_YOUR_CALM` error code is semantically appropriate for resource
limit violations per RFC 7540 Section 7.

Added test
`exceedMaxContentLengthShouldCauseStreamErrorNotConnectionError()` that
sends oversized data on stream 3 and verifies:
- A `StreamException` (not connection error) is produced
- The error targets stream 3 with `ENHANCE_YOUR_CALM` error code
- The test correctly fails when the fix is reverted

Result:

Fixes #11994.
@normanmaurer @chrisvest
Fix shutdownInput bug in kqueue for empty recv buffer (#16630) (#16638
7ffc4f0
)

Co-authored-by: Chris Vest <[email protected]>
@netty-project-bot @normanmaurer
Auto-port 4.1: Kqueue: Fix usage of LOCAL_PEERPID (#16646)
266ba3c
Auto-port of #16637 to 4.1
Cherry-picked commit: e0ca1e1

---
Motivation:

SOCK_STREAM (value 1) was being passed as the socket option level, but
LOCAL_PEERPID is a Unix domain socket option that lives under SOL_LOCAL.
Using SOCK_STREAM as the level
would cause getsockopt to look in the wrong protocol layer — on most
kernels this silently returns EOPNOTSUPP or wrong data rather than a
hard error, so it was easy to miss.

Modifications:

- Replace SOCK_STREAM with SOL_LOCAL

Result:

LOCAL_PEERPID works as expected on MacOS / BSD

Co-authored-by: Norman Maurer <[email protected]>
@netty-project-bot @normanmaurer
Auto-port 4.1: HTTP2: Ensure HTTP2 preface is always send as first me…
60c1c9f
…ssage (#16642)

Auto-port of #16636 to 4.1
Cherry-picked commit: caf6f41

---
Motivation:

We had a race in which it was possible that we send another frame before
the preface if the write happened in the ChannelListener attached to the
connect promise.

Modifications:

- Ensure we always send the preface before we give the user a chance to
write another frame.
- Add unit test

Result:

Fixes #16635

---------

Co-authored-by: Norman Maurer <[email protected]>
@netty-project-bot @chrisvest
Auto-port 4.1: Propagate exceptions from inner threads in buffer tests (
2b912e5
#16652)

Auto-port of #16643 to 4.1
Cherry-picked commit: 4f3533a

---
Motivation:
If there are assertion failures inside threads started by a test, we
need to ensure that the exception propagates out of the test, instead of
just killing the started thread. This is likely the cause of some test
timeouts we're seeing, and this change will help us uncover the root
causes.

Modification:
Catch exceptions inside threads started by the tests, and make sure to
progress relevant barriers. Propagate the exception to the test-running
thread so we capture the cause.

Result:
Easier to debug tests.

---------

Co-authored-by: Chris Vest <[email protected]>
@netty-project-bot @fru1tworld @normanmaurer
Auto-port 4.1: Add maxFrameLength support to ProtobufVarint32FrameDec…
56f6d91
…oder (#16658)

Auto-port of #16633 to 4.1
Cherry-picked commit: 6ab2d86

---
## Motivation

`ProtobufVarint32FrameDecoder` has no protection against oversized
frames. A malicious client can send a large varint length value and
cause the server to allocate excessive memory.

## Modification

- Add `maxFrameLength` constructor parameter
- When a frame exceeds `maxFrameLength`, skip the frame bytes and throw
`TooLongFrameException`
- Default constructor remains backward-compatible (`maxFrameLength =
Integer.MAX_VALUE`)

## Result

Oversized protobuf frames are now rejected with `TooLongFrameException`
instead of causing unbounded memory allocation.

---------

Co-authored-by: fru1tworld <[email protected]>
Co-authored-by: Norman Maurer <[email protected]>
@netty-project-bot @normanmaurer
Auto-port 4.1: Bump up netty-tcnative to 2.0.76.Final (#16672)
dd3f4e3
Auto-port of #16669 to 4.1
Cherry-picked commit: dfe0972

---
Motivation:

We had a new netty-tcnative release

Modifications:

Update to 2.0.76.Final

Result:

Use latest version

Co-authored-by: Norman Maurer <[email protected]>
chrisvest and others added 28 commits September 9, 2026 11:31
@chrisvest @normanmaurer
Verify id-kp-OCSPSigning EKU on delegated OCSP responder certificates
46f4ab0
Motivation:

OcspClient.validateSignature() accepted any OCSP response whose signing
certificate chained to the issuer's trust anchor, without checking that a
delegated responder was actually authorized to sign OCSP responses. RFC 6960
section 4.2.2.2 requires relying parties to reject a response unless the signing
certificate either is the issuing CA itself or carries the id-kp-OCSPSigning
value in an Extended Key Usage extension. Because that check was missing, a bad
actor holding any certificate issued by the same CA could sign forged "GOOD"
responses and bypass revocation checks.

Modification:

When the OCSP response embeds a responder certificate, verify that it is
authorized to sign OCSP responses before trusting the signature. If the
responder certificate is not the issuer certificate itself (the CA-signs-
directly case allowed by RFC 6960), it must contain the id-kp-OCSPSigning
value in its Extended Key Usage extension; otherwise the response is rejected.
A malformed EKU extension is also rejected. Added tests covering a delegated
responder without the EKU (rejected), a delegated responder with the EKU
(accepted) and a response signed directly by the issuing CA (accepted).

Result:

Netty's OcspClient now enforces OCSP signing authorization as mandated by
RFC 6960, and forged responses signed by unauthorized same-CA certificates are
rejected.
@chrisvest @normanmaurer
OCSP: Correctly handle that nextUpdate is optional
9099e6b
Motivation:
The OCSP spec says that the `nextUpdate` field is optional.
This means it can be `null`, and it means that we need our validation to deal with this case.
When the `nextUpdate` field is `null`, it indicates that a new update is "always" available, at any time.

Modification:
- Remove the null-check in `OcspResponse` to allow the field to be `null`.
- Fix the `OcspServerCertificateValidator` to handle the null `nextUpdate` case by just checking that the current time falls within the window of `thisUpdate` plus-minus the clock-skew brackets.
- Add regression tests to verify this behavior.

Result:
We now handle when `nextUpdate` is `null`, and our intepretation follows what the JDK is doing in this case.
This also fixes an RFC spec compliance gap in this behavior.
@netty-project-bot
[maven-release-plugin] prepare release netty-4.1.138.Final
26e68a2
@netty-project-bot
[maven-release-plugin] prepare for next development iteration
5ef9fd5
@netty-project-bot @JunggiKim @normanmaurer
Auto-port 4.1: perf: Use LinkedHashSet to deduplicate search domains (#…
909ae03
…17407)

Auto-port of #17400 to 4.1
Cherry-picked commit: 4021ead

---
Motivation:

`DnsNameResolverBuilder.searchDomains` keeps unique domains in an
`ArrayList`.
For every new domain, `List.contains` scans the values already
collected. A large
list of distinct domains therefore performs a growing number of
comparisons.

Modification:

Use one `LinkedHashSet` while reading the supplied `Iterable`. It
removes
duplicates in expected constant time and preserves the first-seen order.
Convert
the set to the existing `String[]` field after the loop, so resolver
lookup order
and the stored representation stay unchanged.

Add a regression test for order, duplicate removal, case sensitivity,
`Aa` / `BB`
hash collisions, and stopping at the first `null` value.

Result:

The duplicate-checking work changes from O(N^2) for N distinct domains
to expected
O(N). A local JMH collection-loop benchmark on JDK 21, with 2 forks,
measured:

| Distinct domains | ArrayList | LinkedHashSet |
| ---: | ---: | ---: |
| 64 | 3.196 us/op | 1.065 us/op |
| 256 | 46.678 us/op | 4.584 us/op |
| 1024 | 780.932 us/op | 26.025 us/op |
| 4096 | 12196.313 us/op | 147.224 us/op |

This is builder configuration work, not DNS request latency. Inputs
containing
only repeated values may be slower because the old list stays at one
element.

Verification:

```text
./mvnw -pl resolver-dns -am -Dtest=DnsNameResolverBuilderTest \
  -Dsurefire.failIfNoSpecifiedTests=false test
```

The reactor build succeeded. `DnsNameResolverBuilderTest` ran 10 tests
with zero
failures, errors, or skipped tests.

Co-authored-by: kjg <[email protected]>
Co-authored-by: Norman Maurer <[email protected]>
@netty-project-bot @cuishuang
Auto-port 4.1: Handle non-positive skip lengths in ByteBufInputStream (…
9f294ca
…#17410)

Auto-port of #17388 to 4.1
Cherry-picked commit: 87eb426

---
Motivation:

ByteBufInputStream currently delegates non-positive skip values to
ByteBuf.skipBytes(). This means negative values result in an
IllegalArgumentException.

While subclasses of InputStream may handle negative values differently,
InputStream's default implementation returns 0 without skipping any
bytes. Making ByteBufInputStream behave the same way provides more
consistent
stream behavior.

Modification:

Return 0 immediately from ByteBufInputStream.skip(long) and
skipBytes(int) when the requested length is non-positive.


Result:

ByteBufInputStream now handles non-positive skip lengths consistently
with InputStream's default behavior.

Co-authored-by: cui fliter <[email protected]>
@normanmaurer
Protobuf: Update protobuf-javanano to non alpha release (#17330) (#17335
64506aa
)

Motivation:

We should better not depend on a alpha release and just use a final
release

Modifications:

Update to final release

Result:

No more dependency on alpha release. Related to
#17298
@normanmaurer @rajan-github
Socket: Add half-closure tests to SocketHalfClosedTest (#17394) (#17434)
b1f65ed
Motivation:

SocketHalfClosedTest lacked test coverage verifying that active,
unilateral
local half-closure calls (shutdownInput() and shutdownOutput())
correctly
permit the opposite direction to continue functioning with actual data
payload transfer.

Modifications:

Add testShutdownInputAllowsOutboundWrites and
testShutdownOutputAllowsInboundReads to SocketHalfClosedTest using
DuplexChannel.

Also remove unused imports and fix a checkstyle violation in
NioSocketChannelTest.

Result:

Improve test coverage for transport-agnostic half-closure behavior,
ensuring outbound writes succeed after shutdownInput() and inbound reads
succeed after shutdownOutput().

---------

Co-authored-by: Rajan Chauhan <[email protected]>
@netty-project-bot seonghun lee
Auto-port 4.1: HttpUtil.getCharset() must accept whitespace before th…
e908f74
…e next Content-Type parameter (#17436)

Auto-port of #17386 to 4.1
Cherry-picked commit: 086310c

---
### Motivation:

RFC 9110 section 5.6.6 defines media type parameters as `*( OWS ";" OWS
[ parameter ] )`, so optional whitespace is allowed before the semicolon
that starts the next parameter. For a header like `text/html;
charset=utf-8 ; action="foo"`, `HttpUtil.getCharset()` extracted `utf-8
` (with the trailing space), failed to resolve the charset, and silently
fell back to the default charset — decoding the body with the wrong
charset. The quoted form `charset="utf-8" ; ...` was broken the same way
because the trailing space defeats the quote-stripping.

### Modification:

Trim the extracted charset sequence in `HttpUtil.getCharset()` before
stripping quotes and resolving the `Charset`. The raw-sequence API
`getCharsetAsSequence` is deliberately left unchanged (its tests pin the
raw behavior).

### Result:

Content-Type headers with optional whitespace before the next parameter
now resolve to the correct charset instead of the default. Two
regression tests added (fail on `4.2`, pass with the fix);
`HttpUtilTest` passes 150/150.

Fixes #17384.

Co-authored-by: seonghun lee <[email protected]>
@netty-project-bot @hyperxpro
Auto-port 4.1: codec-dns: Add SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC…
6b72b06
…, ZONEMD records (#17459)

Auto-port of #17373 to 4.1
Cherry-picked commit: 5019755

---
Motivation:

IANA has assigned SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC and ZONEMD in
the "Resource Record (RR) TYPEs" registry, but DnsRecordType does not
define them. valueOf(int) fabricates an UNKNOWN for their code points
and valueOf(String) rejects the mnemonics outright.

Modification:

Add SMIMEA (53, RFC 8162), CDS (59) and CDNSKEY (60) (RFC 7344),
OPENPGPKEY (61, RFC 7929), CSYNC (62, RFC 7477) and ZONEMD (63, RFC
8976), and register them so both valueOf overloads resolve them.

RFC 8162 and RFC 7929 are Experimental, which the javadoc notes as KX
already does. Pin the code points in a test, since the existing
reflection sweep proves a constant is registered but not that its value
is right.

Result:

The six types decode as themselves rather than as UNKNOWN.

Co-authored-by: Aayush Atharva <[email protected]>
@normanmaurer
Update GitHub Actions to Node.js 24 to fix deprecation warning (#17488)
1a637c4
Motivation:

Several actions (actions/checkout, actions/cache,
actions/upload-artifact,
actions/download-artifact, actions/setup-java, and a few third-party
actions)
were pinned to versions that still declare Node.js 20, which is now
deprecated and forced onto Node.js 24 by the runner.

Modifications:

Bump each to the earliest/latest release that natively targets Node.js
24, keeping SHA
pinning with a version comment as before.

Result:

Cleanup
@normanmaurer
Remove not used tools from docker image (#17490)
21991d4
Motivation:

We don't need go, cmake and ninja for 4.1

Modifications:

Remove download / installation of these tools

Result:

Reduce docker image build times
@netty-project-bot @ohchanKyu
Auto-port 4.1: HttpUtil.getMimeType() must not include whitespace bef…
f60b495
…ore the next Content-Type parameter (#17494)

Auto-port of #17456 to 4.1
Cherry-picked commit: 4b3de16

---
Motivation:

RFC 9110 section 8.3.1 defines media type parameters as `*( OWS ";" OWS
[ parameter ] )`, so optional whitespace is allowed before the semicolon
that starts the next parameter. For a header like `text/html ;
charset=utf-8`, `HttpUtil.getMimeType()` returned `text/html ` with the
trailing space, so comparisons against constants such as
`HttpHeaderValues.TEXT_HTML` failed for a well-formed header. This is
the same class of bug that #17386 fixed for `getCharset()`, and after
that fix the two helpers were inconsistent on the same input.

Modifications:

- Trim trailing OWS from the media type extracted by
`HttpUtil.getMimeType()` before returning it, reusing the existing
`isOws(...)` helper.
- Add a regression test covering SP, HTAB and mixed OWS before the
semicolon, for both the `CharSequence` and the `HttpMessage` overload.

Result:

`HttpUtil.getMimeType()` returns only the `type/subtype` part of a
Content-Type value even when optional whitespace precedes the parameter
delimiter.

Fixes #17455.

Co-authored-by: 오규찬 (B팀 서버) <[email protected]>
@netty-project-bot @octa-one
Auto-port 4.1: Fix buffer leak when recvmmsg returns single UDP_GRO b…
0b1da33
…atch (#17500)

Auto-port of #17493 to 4.1
Cherry-picked commit: 8ffa436

---
### Motivation:
  
When recvmmsg returns a single message, the single packet fast path
creates a DatagramPacket, which retains a slice of the receive buffer.
If that packet is an UDP_GRO batch (SegmentedDatagramPacket), it falls
through to the loop, which creates the packet again and the first one is
never released.

It is related to #17492. After this PR every `UDP_GRO` +
`MAX_DATAGRAM_PAYLOAD_SIZE` will be affected.
Today this requires `UDP_GRO` + `MAX_DATAGRAM_PAYLOAD_SIZE` and
`IP_RECVORIGDSTADDR` set together.

### Modification:

Release the fast path packet before falling through to the loop

### Result:

No receive buffer leak when recvmmsg returns a single UDP_GRO batch.

Co-authored-by: Alexander Mitropolsky <[email protected]>
@netty-project-bot @fudianchn
Auto-port 4.1: Guard ChunkedWriteHandler.doFlush() against re-entrant…
2550ea3
… invocation from user code (#17501)

Auto-port of #17438 to 4.1
Cherry-picked commit: 3061561

---
AI disclosure: this change was prepared with AI coding agents, reviewed
and revised line by line by me.

## Motivation

`ChunkedWriteHandler.doFlush(...)` intermittently fails with
`NoSuchElementException` from `ArrayDeque.remove()` (#14839).

Root cause: `queue.peek()` and the `queue.remove()` calls are separated
by user code. `ChunkedInput.readChunk(...)` and `isEndOfInput()` run
between them, and that user code can synchronously re-enter the handler
— an incidental `flush()`, a `resumeTransfer()`, a writability change,
or a close notification. The nested `doFlush(...)` peeks and consumes
the *same* queue entry:

1. the outer invocation then calls `queue.remove()` on an already-empty
queue → `NoSuchElementException`,
2. both invocations read from the same input — including after the
nested one closed it,
3. the double consumption leaks a chunk buffer (caught by leak detection
in the regression test).

A deterministic reproducer on 4.1.119 matches the stack reported on
4.1.118 frame by frame (`doFlush:287`, `flush:146`).

## Modification

1. Guard `doFlush(...)` against re-entrant invocation: an `inFlush`
flag, cleared in `finally` — same shape as the re-entrancy guard added
to `Http2ConnectionHandler.flush(...)` in #17266.
2. A nested call is remembered (`flushPending`), not dropped: the outer
invocation re-runs the drain loop before returning. A plain `return`
guard would lose a `resumeTransfer(...)` that arrives while the transfer
is about to suspend — the same lost-resume problem the old lock-based
guard addressed with `flushRequired` (#637).
3. Two regression tests in `ChunkedWriteHandlerTest`:
- re-entrant `flush()` from `readChunk(...)`: fails on master with the
reported `NoSuchElementException` and a leak-detection error, passes
with the guard; asserts the input is read exactly twice, closed exactly
once after the last read, both chunks written once in order, and the
promise succeeds,
- `resumeTransfer()` from a suspending `readChunk(...)`: passes on
master (where the nested call does the work but the outer
`NoSuchElementException` is not surfaced to the caller) and on the
guard, fails on a plain-`return` variant of the guard (transfer hangs) —
it pins the no-lost-resume property.

## Result

Fixes #14839.

Signed-off-by: 付典 <[email protected]>
Co-authored-by: fudian <[email protected]>
@netty-project-bot @normanmaurer
Auto-port 4.1: Add regression test for close() cascade reentering flu…
707791d
…sh() (#17505)

Auto-port of #17497 to 4.1
Cherry-picked commit: 9b96442

---
Motivation:

The reentrancy fix landed in #17279 already covers this case, since
the inFlush/flushAgain guard in flush() now spans the whole call
rather than just individual iterations.

Modifications:

- adds the regression test from #17276 to lock in that behavior.

Result:

Better test coverage

Co-authored-by: Norman Maurer <[email protected]>
@normanmaurer @octa-one
Port: Fix UDP_GRO segment size is lost when reading with recvmmsg (#1…
99ef2a6
…7492) (#17506)

With EpollChannelOption.UDP_GRO enabled, the kernel coalesces same size
datagrams and reports the segments size in a control message, which
EpollDatagramChannel turns into a SegmentedDatagramPacket to split
later.

This works with recvmsg, which always passes a control buffer, but not
with recvmmsg.
recvmmsg0 only provided control buffers with `IP_RECVORIGDSTADDR`
enabled (checked with a additional syscall getsockopt on every call)
Without control buf the kernel drops the control message (setting
MSG_CTRUNC, which is not checked), so a coalesced batch is delivered as
a single DatagramPacket holding all of its segments.
Notably, the existing GRO tests dont set `MAX_DATAGRAM_PAYLOAD_SIZE`, so
tests only run recvmsg path.

- recvmmsg0 allocates a control buffer for every message, sized as in
recvmsg0 and frees it on the early return path. Per call getsockopt for
`IP_RECVORIGDSTADDR` is removed.
- init_packet consider the control segment size as an int ([as the
kernel actually

writes](https://github.com/torvalds/linux/blob/f6e7b42bf05b2427fb8a7a1d1c387a86638bb413/include/linux/udp.h#L185)).
Otherwise, there could be problems when reading on bigendian systems.
- Add a test for recvmmsg path. GSO send to a GRO socket whose receive
buffer holds two batches, so the batch is read with recvmmsg, checking
that every segment arrives separately.

GRO batches read through recvmmsg are correctly split into their
segments.
When no receive options are enabled the kernel leaves the control
buffers untouched and each recvmmsg call saves a getsockopt syscall.
The new test fails on 4.2 and passes with this change.

Co-authored-by: Alexander Mitropolsky <[email protected]>
@netty-project-bot @normanmaurer
Auto-port 4.1: Make CompositeBufferGatheringWriteTest robust against …
92816ea
…write/close race (#17510)

Auto-port of #17508 to 4.1
Cherry-picked commit: 9cbb260

---
Motivation:

The server used to close the channel as soon as its write future
completed, which only guarantees the data was handed to the kernel,
not that the client actually read it. On loaded CI runners (notably
macOS kqueue) this occasionally raced, leaving the client with 0
bytes and no exception before channelInactive fired.

Modifications:

Replace the fire-and-close pattern with an explicit ack: the server
now waits for a 1-byte ack from the client before closing, and the
client sends that ack (and completes the test) as soon as it has
accumulated all expected bytes in channelRead.

Result:

Less flaky tests

Co-authored-by: Norman Maurer <[email protected]>
@netty-project-bot @normanmaurer
Auto-port 4.1: Add workflow that will cancel running workflows for me…
21957f8
…rged PRs (#17519)

Auto-port of #17518 to 4.1
Cherry-picked commit: b87cb15

---
Motivation:

Sometimes we merge a PR when some workflows are still running, let's
cancel these in this case to free up runners.

Modifications:

Add workflow that will cancel running workflows of already merged PRs

Result:

Cancel wasteful work that is not required after merging

Co-authored-by: Norman Maurer <[email protected]>
@netty-project-bot @normanmaurer
Auto-port 4.1: Harden DnsNameResolverTest against transient null loca…
ba71a07
…lAddress from TestDnsServer (#17522)

Auto-port of #17514 to 4.1
Cherry-picked commit: f435d97

---
## Motivation

We've seen sporadic failures like this on Windows CI:

```
DnsNameResolverTest > testTruncatedWithTcpFallbackBecauseOfMtu(DnsNameResolverChannelStrategy) > [1] ChannelPerResolver
java.lang.NullPointerException: address
at io.netty.util.internal.ObjectUtil.checkNotNull(ObjectUtil.java:39)
at io.netty.resolver.dns.DnsServerAddresses.singleton(DnsServerAddresses.java:152)
at io.netty.resolver.dns.SingletonDnsServerAddressStreamProvider.<init>(SingletonDnsServerAddressStreamProvider.java:29)
at io.netty.resolver.dns.DnsNameResolverTest.testTruncated0(DnsNameResolverTest.java:3480)
```

`TestDnsServer.localAddress()` reads the local address off the MINA
`NioDatagramAcceptor` used by our test DNS server. The actual bind
happens asynchronously on a background `Acceptor` thread; the calling
thread only blocks on a future until that thread signals completion.
`startDnsServerAndCreateServerSocket()` already retries when `start()`
throws `IOException` (e.g. port already in use), but it assumed a
non-throwing `start()` always leaves a valid local address behind.
Apparently that isn't always true - most likely a timing/visibility race
in this old, unmaintained MINA-based test dependency - and it seems to
surface more readily on Windows, leaving `localAddress()` null and
blowing up `DnsServerAddresses.singleton(...)`.

## Modification

Treat a `null` `localAddress()` right after a "successful" `start()` the
same way as a bind failure in `startDnsServerAndCreateServerSocket()`:
stop the server, close the socket, and retry (bounded by the existing
retry count), instead of returning a server that can't actually be used.

## Result

`testTruncatedWithTcpFallbackBecauseOfMtu` and the other tests going
through `startDnsServerAndCreateServerSocket()` no longer NPE when the
underlying test DNS server's UDP acceptor doesn't report a local address
on the first attempt.

Co-authored-by: Norman Maurer <[email protected]>
@normanmaurer
Cache docker build images in ghcr.io to speed up CI for 4.1 (#17533)
461af7b
Motivation:

Every docker compose build in our workflows rebuilds the CentOS/AL2023/
cross-compile images from scratch on each run since GitHub-hosted
runners
are ephemeral and have no persistent layer cache.

Modifications:

Switch to buildx with a registry cache backend (ghcr.io) so the
expensive
image layers (devtoolset, OpenSSL built from source, rust/clang/go
toolchains) are reused across runs
and across the different java-version matrix legs that share a
Dockerfile.

Result:

Speed up CI builds
@netty-project-bot @Gimini-3
Auto-port 4.1: HTTP/2: Remove failed SETTINGS from ACK queue (#17534)
deb52e1
Auto-port of #17387 to 4.1
Cherry-picked commit: 481df02

---
Motivation:

DefaultHttp2ConnectionEncoder adds local SETTINGS to the outstanding ACK
queue before validating them. If validation or the frame write fails,
settings that were never sent remain queued. A later peer ACK can then
apply the wrong settings, trigger a protocol error, and shift the FIFO
correspondence for subsequent SETTINGS frames.

Modifications:

- Validate local SETTINGS before adding them to the outstanding queue.
- Track every SETTINGS write with a unique queue entry.
- Remove the exact entry when the frame writer throws or its future
fails synchronously or asynchronously.
- Preserve void-promise support.
- Add unit coverage for validation, synchronous and asynchronous
failure, ordering, and void promises.
- Add a round-trip regression test for failed SETTINGS followed by valid
SETTINGS and an ACK.

Result:

SETTINGS ACKs only apply settings whose writes did not fail, and later
SETTINGS frames retain their FIFO correspondence.

Testing:

./mvnw -pl codec-http2 test

Tests run: 1568, Failures: 0, Errors: 0, Skipped: 5

Co-authored-by: Gimin Kim <[email protected]>
@normanmaurer
Port: Fix compilation on latest macOS 27.0 (#17529) (#17542)
0c370db
Motivation:

We need some adjustments to make our code compile on the latest macOS
release

Modifications:

- Use __buildin_available
- Set support macos version

Result:

Be able to build again on macOS 27.0
@normanmaurer
Http2ConnectionRoundtripTest: Reduce timing sensitivity to fix CI fla…
1eab46c
…kiness (#17540) (#17552)

Motivation:

We saw sporadic CI failures in Http2ConnectionRoundtripTest where a
CountDownLatch.await(...) timed out even though the connection was
behaving correctly. Each test method spins up two
MultiThreadIoEventLoopGroups with the default thread count
(2 * available processors), even though the test only exercises
LocalChannel and never needs more than one thread per group. Combined
with this module running JUnit5 tests concurrently, this can create
significant thread oversubscription and starve the event loop long
enough to blow the 15 second timeout under load. This was reproduced
locally by running many instances of the test concurrently while the
machine was under heavy CPU load, which reliably reproduced the same
kind of timeout failure seen on CI.

Modifications:

- Pin the client and server MultiThreadIoEventLoopGroups in
  bootstrapEnv(...) to a single thread each instead of the default,
  since LocalChannel does not benefit from extra threads.
- Increase DEFAULT_AWAIT_TIMEOUT_SECONDS from 15 to 30 seconds to give
  more headroom under CI load.

Result:

Less flaky Http2ConnectionRoundtripTest.
@netty-project-bot @ohchanKyu @normanmaurer
Auto-port 4.1: ProtobufVarint32FrameDecoder must wait for more data w…
7375bc7
…hen the length prefix is incomplete (#17553)

Auto-port of #17550 to 4.1
Cherry-picked commit: 335aed7

---
Motivation:

Since #14050 two incomplete length prefix cases are no longer treated as
"need more data" by `ProtobufVarint32FrameDecoder`:

- If only 3 bytes are readable and all of them have the continuation bit
set, `readRawVarint24` returned the partial value and left the
readerIndex advanced. `decode()` then used the low 21 bits of the real
length. When these bits are 0, i.e. the message length is an exact
multiple of 2 MiB, an empty frame was emitted, the prefix bytes were
consumed and the rest of the stream was decoded from the wrong position.
A single 2 MiB message split after the third prefix byte was delivered
as about 2 million bogus frames without any exception.
- If exactly 4 bytes are readable and all of them have the continuation
bit set, `readRawVarint40` threw a `CorruptedFrameException` although
the fifth byte may simply not have been received yet.

Before #14050 both cases reset the readerIndex and returned 0.

Modifications:

- `readRawVarint24` resets the readerIndex and returns 0 when the third
byte still has the continuation bit set.
- `readRawVarint40` returns 0 without moving the readerIndex when only 4
bytes are readable, and only throws when the fifth byte is malformed.
- Add tests that split 1 to 5 byte length prefixes at every position,
including lengths that are exact multiples of 2 MiB.

Result:

`ProtobufVarint32FrameDecoder` produces the same frames 
regardless of how the length prefix is fragmented across reads.

Fixes #17549.

---------

Co-authored-by: 오규찬 (B팀 서버) <[email protected]>
Co-authored-by: Norman Maurer <[email protected]>
@netty-project-bot @normanmaurer
Auto-port 4.1: Fix missing readable-bytes check in SmtpResponseDecoder (
0372b88
#17556)

Auto-port of #17516 to 4.1
Cherry-picked commit: 91a8497

---
Motivation:

decode() only checked for 3 readable bytes before parsing, but it
unconditionally consumes a 3-byte code plus a 4th separator byte. A
line consisting of only a 3-digit code (e.g. "250\r\n") passed the
guard and then threw a raw IndexOutOfBoundsException from readByte()
instead of the intended DecoderException.

Modifications:

Require 4 readable bytes and add a regression test.

Result:

No more IOOBE

Co-authored-by: Norman Maurer <[email protected]>
@netty-project-bot @normanmaurer
Auto-port 4.1: Guard against out-of-bounds reads when parsing ClientH…
f9a9095
…ello SNI extension (#17558)

Auto-port of #17532 to 4.1
Cherry-picked commit: 5c44cb5

---
Motivation:

AbstractSniHandler.extractSniHostname() reads the session_id,
cipher_suites and compression_methods lengths from a ClientHello and
advances the parse offset by each of these attacker-controlled values,
without re-checking the offset against the buffer bounds before the
next read. A single crafted, non-fragmented ClientHello with an
oversized session_id length (e.g. 0xFF) pushes the offset past the end
of the buffer and triggers an IndexOutOfBoundsException.

Modification:

Re-validate the offset against the end of the buffer before each of
the three interior reads, symmetric to the bounds checks already used
by the extensions loop further down.

Result:

Malformed ClientHello messages no longer trigger an
IndexOutOfBoundsException while parsing the SNI extension.

Co-authored-by: Norman Maurer <[email protected]>
@normanmaurer
DnsAddressResolverGroupTest: Use a mock DNS server instead of resolvi…
817ee9e
…ng netty.io over the network

Motivation:

testSharedDNSCacheAcrossEventLoops resolved the real netty.io hostname
over the network to verify that DnsAddressResolverGroup shares its DNS
cache across EventLoops. netty.io is fronted by Cloudflare, and live
queries can return different edge IPs on different lookups, which made
the assertSame check flaky regardless of whether the cache was actually
shared.

Modification:

Use a TestDnsServer (as already done in DnsNameResolverTest) backed by
a RecordStore that always returns a single, fixed A record for
netty.io, and point the resolver's nameServerProvider at it. This makes
both resolutions deterministic so the assertion only depends on the
cache-sharing behavior under test.

Result:

testSharedDNSCacheAcrossEventLoops no longer depends on the live DNS
answer for netty.io and is no longer flaky due to external network
behavior.
@normanmaurer normanmaurer closed this Sep 21, 2026
@normanmaurer
normanmaurer deleted the cache-failure-1233e4a5 branch September 21, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

MqttPublishMessage doesn't properly implement refCnt

Uh oh!

There was an error while loading. Please reload this page.

13 participants

@normanmaurer @netty-project-bot @chrisvest @daguimu @yawkat @skyguard1 @hyperxpro @franz1981 @renechoi @violetagg @dreamlike-ocean @daschl @ejona86
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.