GeezerVison is showing github.com (truncated) — fix iouring zerocopy iov overwrite by normanmaurer · Pull Request #17936 · netty/netty
Conversation
- Kickstart the process of netty 5.0.0 again
- Upgrade BouncyCastle to 1.82 and use BOM (Upgrade BouncyCastle to 1.82 and use BOM #15854)
- Mark EventLoopTaskQueueFactory deprecated (Mark EventLoopTaskQueueFactory deprecated #15857)
- Require JDK25 (Require JDK25 #15856)
- Remove RXTX and UDT transport (Remove RXTX and UDT transport #15866)
- Disable module-info plugin detection of provides declaration (Disable module-info plugin detection of provides declaration #15868) (Disable module-info plugin detection of provides declaration (#15868) #15870)
- Re-enable JPMS testsuite (Re-enable JPMS testsuite #15872)
- chore: Update javadoc of CompositeByteBuf#releaes method (chore: Update javadoc of CompositeByteBuf#releaes method #15864) (chore: Update javadoc of CompositeByteBuf#releaes method (#15864) #15874)
- *SocketChannel should not require InetSocketAddress (*SocketChannel should not require InetSocketAddress #15869)
- Remove OIO transport (Remove OIO transport #15885)
- Ensure Arena.ofShared() is usable before assuming that we can use Are… (Ensure Arena.ofShared() is usable before assuming that we can use Are… #15882)
- Remove InternetProtocolFamily (Remove InternetProtocolFamily #15884)
- Remove old EventLoop implementations that were deprecated. People sho… (Remove old EventLoop implementations that were deprecated. People sho… #15880)
- Use real, instead of synthetic, HTTP/2 stream id (Use real, instead of synthetic, HTTP/2 stream id #15842) (Use real, instead of synthetic, HTTP/2 stream id (#15842) #15887)
- Fix flaky tests in codec-http module (Fix flaky tests in codec-http module #15862) (Fix flaky tests in codec-http module (#15862) #15893)
- NIO: Remove dedicated UDS channel implementations (NIO: Remove dedicated UDS channel implementations #15879)
- Fix ZstdEncoder not producing data when source is smaller than block … (Fix ZstdEncoder not producing data when source is smaller than block … #15895)
- Add executor() to ChannelOutboundInvoker and let it replace eventLoop… (Add executor() to ChannelOutboundInvoker and let it replace eventLoop… #15890)
- Revert "Adjust the execution order of processCancelledTasks (Adjust the execution order of processCancelledTasks #15760)"
- Remove deprecated EpollMode (Remove deprecated EpollMode #15902)
- Remove splice support (Remove splice support #15898)
- *Remove VoidPromise (Remove *VoidPromise #15891)
- Remove deprecated ChannelFactory (Remove deprecated ChannelFactory #15897)
- Remove ability to use different EventExecutorGroup for a ChannelHandler (Remove ability to use different EventExecutorGroup for a ChannelHandler #15889)
- Fix Zstd compression for large data (Fix Zstd compression for large data #15861) (Fix Zstd compression for large data (#15861) #15901)
- Replace usage of DefaultEventLoopGroup (Replace usage of DefaultEventLoopGroup #15904)
- Merge IoEventLoop into EventLoop and IoEventLoopGroup into EventLoopG… (Merge IoEventLoop into EventLoop and IoEventLoopGroup into EventLoopG… #15905)
- Tighten contract between Channel and EventLoop by require the EventLo… (Tighten contract between Channel and EventLoop by require the EventLo… #15910)
- Add ChannelOutboundInvoker.register(...) and ChannelOutboundHandler.r… (Add ChannelOutboundInvoker.register(...) and ChannelOutboundHandler.r… #15914)
- Implement Quic stream reset frame application protocol error code pro… (Implement Quic stream reset frame application protocol error code pro… #15918)
- Decouple AbstractChannel from DefaultChannelPipeline requirement (Decouple AbstractChannel from DefaultChannelPipeline requirement #15915)
- Update error message for constructor validation (Update error message for constructor validation #15920)
- ChannelOutboundBuffer doesn't need to require AbstractChannel
- Channel: Trim down Channel.Unsafe scope (Channel: Trim down Channel.Unsafe scope #15925)
- Remove method from Channel.Unsafe to retrieve ChannelOutboundBuffer (Remove method from Channel.Unsafe to retrieve ChannelOutboundBuffer #15930)
- GraalVM: Constructor arguments of NIO channels need to be adjusted (GraalVM: Constructor arguments of NIO channels need to be adjusted #15932)
- Fix race condition in NonStickyEventExecutorGroup causing incorrect i… (Fix race condition in NonStickyEventExecutorGroup causing incorrect i… #15934)
- 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) #15944)
- Add support for quiche_config_discover_pmtu (Add support for quiche_config_discover_pmtu #15936) (Add support for quiche_config_discover_pmtu (#15936) #15945)
- AbstractChannel: All outbound io operations must support asynchronous… (AbstractChannel: All outbound io operations must support asynchronous… #15939)
- ** AbstractChannel: Move connect logical to AbstractChannel and so remove code-duplication ( AbstractChannel: Move connect logical to AbstractChannel and so remove code-duplication #15942)**
- DatagramChannel: Don't enforce InetSocketAddress (DatagramChannel: Don't enforce InetSocketAddress #15947)
- Remove useless null check as the executor can never be null
- AbstractChannel: Share code to handle pending writes (AbstractChannel: Share code to handle pending writes #15946)
- Address followup comments of Chris for PR AbstractChannel: All outbound io operations must support asynchronous… #15939
- Channel: Remove Channel.Unsafe access from public API and rename Chan… (Channel: Remove Channel.Unsafe access from public API and rename Chan… #15950)
- Fix [15908] - Ignore unknown Http3Setting Identifier in Http3Settings… (Fix [15908] - Ignore unknown Http3Setting Identifier in Http3Settings… #15956)
- Socket: Fix handling of abstract namespaces on linux when creating th… (Socket: Fix handling of abstract namespaces on linux when creating th… #15958)
- Merge DomainSocket implementations into other implementations (Merge *DomainSocket* implementations into other implementations #15955)
- Delete unused interfaces
- NioTask is not used anymore so remove it
- Cleanup: Remove Default*ChannelConfig implementations which are not u… (Cleanup: Remove Default*ChannelConfig implementations which are not u… #15960)
- Remove ChannelProgressive future and promise (Remove ChannelProgressive* future and promise #15966)*
- Transport: Only allow DatagramPacket and ByteBuf to be be written for… (Transport: Only allow DatagramPacket and ByteBuf to be be written for… #15959)
- Remove ProgressivePromise and ProgressiveFuture (and implementations) (Remove ProgressivePromise and ProgressiveFuture (and implementations) #15969)
- Discard the following HttpContent for preflight request (Discard the following HttpContent for preflight request #15941) (Discard the following HttpContent for preflight request (#15941) #15963)
- Transport: Remove all sub-interfaces of ChannelConfig (Transport: Remove all sub-interfaces of ChannelConfig #15961)
- Remove throws Exception from listener method (Remove throws Exception from listener method #15968)
- Cleanup some code in EpollDatagramChannel as a followup of DatagramChannel: Don't enforce InetSocketAddress #15947
- Close Channel and fail bootstrap when setting a ChannelOption causes … (Close Channel and fail bootstrap when setting a ChannelOption causes … #15972)
- Pcap: Fix possible buffer leak when initializion fails (Pcap: Fix possible buffer leak when initializion fails #15976)
- ChannelOutboundHandler: Remove throws Exception from method signature (ChannelOutboundHandler: Remove throws Exception from method signature #15974)
- Use exact length when allocating the acceptedAddress byte[] (Use exact length when allocating the acceptedAddress byte[] #15973)
- Update lz4-java version to 1.10.1 (Update lz4-java version to 1.10.1 #15978) (Update lz4-java version to 1.10.1 (#15978) #15982)
- Merge classes as follow up of 6008e20 (Merge classes as follow up of 6008e2070667cce95acaaf3fa88bdd1cfd1f6fdf #15985)
- ChannelHandlerContext: Don't extend AttributeMap (ChannelHandlerContext: Don't extend AttributeMap #15990)
- Transport: Remove ChannelMetaData (Transport: Remove ChannelMetaData #15988)
- ChannelConfig: Cleanup implementations (ChannelConfig: Cleanup implementations #15992)
- CombinedChannelDuplexHandler: Add missing override for register(...) (CombinedChannelDuplexHandler: Add missing override for register(...) #16000)
- Prevent ManualEventLoop to block on a racy task submission (Prevent ManualEventLoop to block on a racy task submission #15937) (Prevent ManualEventLoop to block on a racy task submission (#15937) #16001)
- Fix - Http3FrameCodec decode fail during unknown settings (Fix - Http3FrameCodec decode fail during unknown settings #15998) (Fix - Http3FrameCodec decode fail during unknown settings (#15998) #16002)
- EPOLL: Fail correct connect promise on closure (EPOLL: Fail correct connect promise on closure #16007)
- ChannelConfig: Remove deprecated methods to change watermarks (ChannelConfig: Remove deprecated methods to change watermarks #15999)
- Make half-closure a core-concept of Channel (Make half-closure a core-concept of Channel #15987)
- Codecs: Remove Serialization and Marshalling codecs (Codecs: Remove Serialization and Marshalling codecs #16008)
- Fix Socket reading of abstract unix domain addresses (Fix Socket reading of abstract unix domain addresses #16010) (Fix Socket reading of abstract unix domain addresses (#16010) #16013)
- ChannelHandler: Simplify ChannelHandler hierarchy (ChannelHandler: Simplify ChannelHandler hierarchy #15991)
- Build fixes to allow using the epoll native transport on Android (Channel(Sink) implementation for connecting to InputStream and OutputStream objects #16… (Build fixes to allow using the epoll native transport on Android (#16… #16018)
- Correct codec-native-quic Fragment-Host (Correct codec-native-quic Fragment-Host #16015) (Correct codec-native-quic Fragment-Host (#16015) #16017)
- Merge commit from fork
- Codec: Remove ReplayingDecoder and replace usage with ByteToMessageDe… (Codec: Remove ReplayingDecoder and replace usage with ByteToMessageDe… #16021)
- Fix MpscIntQueue bug (Fix MpscIntQueue bug #16023) (Fix MpscIntQueue bug (#16023) #16026)
- LocalChannel: Reduce GC by re-using same Runnable (LocalChannel: Reduce GC by re-using same Runnable #16014) (LocalChannel: Reduce GC by re-using same Runnable (#16014) #16029)
- Remove Future.removeListeners(...) and addListeners(...) (Remove Future.removeListeners(...) and addListeners(...) #16031)
- Fix HTTP startline validation (Fix HTTP startline validation #16022) (Fix HTTP startline validation (#16022) #16025)
- Remove ChannelGroup (Remove ChannelGroup #16033)
- Replace FutureListener usage with Lambda where possible (Replace *FutureListener* usage with Lambda where possible #16032)
- Optimize HTTP startline validation (Optimize HTTP startline validation #16030) (Optimize HTTP startline validation (#16030) #16043)
- Add missing publishing config for the bom module
- Channel: Add correct overrides for methods that return itself (Channel: Add correct overrides for methods that return itself #16045)
- Make AdaptiveByteBuf.setBytes faster (Make AdaptiveByteBuf.setBytes faster #15736) (Make AdaptiveByteBuf.setBytes faster (#15736) #16048)
- NioDatagramChannel.block(...) does not early return on failure (NioDatagramChannel.block(...) does not early return on failure #16044) (NioDatagramChannel.block(...) does not early return on failure (#16044) #16047)
- Update to latest JDK26 EA build (Update to latest JDK26 EA build #16050)
- Avoid non-portable malloc-of-zero behavior (Avoid non-portable malloc-of-zero behavior #16055) (Avoid non-portable malloc-of-zero behavior (#16055) #16060)
- allocation free AdaptiveByteBuf::setBytes(byte[]) (allocation free AdaptiveByteBuf::setBytes(byte[]) #16058) (allocation free AdaptiveByteBuf::setBytes(byte[]) (#16058) #16063)
- ChannelPipeline: Add tests for using ChannelHandlerContext and trigge… (ChannelPipeline: Add tests for using ChannelHandlerContext and trigge… #16067)
- Allow ChannelOutboundHandler to buffer outbound data and influence Ch… (Allow ChannelOutboundHandler to buffer outbound data and influence Ch… #16061)
- Fix javadocs as Channel*Handler is now an interface (Fix javadocs as Channel*Handler is now an interface #16069)
- Clean up Future/Promises API (Clean up Future/Promises API #16039)
- API: Change method signature to return void when promise is given (API: Change method signature to return void when promise is given #16051)
- Improve exception message generated by `EnhancingX509ExtendedTrustMan… (Improve exception message generated by `EnhancingX509ExtendedTrustMan… #16074)
- Avoid UnsupportedOperationException in CompositeeByteBuf when noUnsafe is true (Avoid UnsupportedOperationException in CompositeeByteBuf when noUnsafe is true #16097) (Avoid UnsupportedOperationException in CompositeeByteBuf when noUnsafe is true (#16097) #16100)
- Fix some typos (Fix some typos #16105)
- Add SLH-DSA algorithms to pkitesting CertificateBuilder (Add SLH-DSA algorithms to pkitesting CertificateBuilder #16080) (Add SLH-DSA algorithms to pkitesting CertificateBuilder (#16080) #16106)
- Improve adaptive allocator thread local performance (Improve adaptive allocator thread local performance #15741) (Improve adaptive allocator thread local performance (#15741) #16107)
- fix: prevent DGC init failure if IpMulticastAll cannot be set (fix: prevent DGC init failure if IpMulticastAll cannot be set #16104) (fix: prevent DGC init failure if IpMulticastAll cannot be set (#16104) #16108)
- Fix typo: 'seperated' -> 'separated' in InvalidLineSeparatorException (Fix typo: 'seperated' -> 'separated' in InvalidLineSeparatorException #16092)
- Update to latest JDK26 EA build (Update to latest JDK26 EA build #16110) (Update to latest JDK26 EA build (#16110) #16111)
- Set default maxFieldSectionSize to 16MB (Set default maxFieldSectionSize to 16MB #16088) (Set default maxFieldSectionSize to 16MB (#16088) #16115)
- Add support for cross-signing to pkitesting (Add support for cross-signing to pkitesting #16103) (Add support for cross-signing to pkitesting (#16103) #16114)
- [io_uring] submit send over write for sockets ([io_uring] submit send over write for sockets #16095) ([io_uring] submit send over write for sockets (#16095) #16116)
- Fix OCSP signature validation when responder is not the issuer (Fix OCSP signature validation when responder is not the issuer #16079) (Fix OCSP signature validation when responder is not the issuer (#16079) #16118)
- feat(netty-codec-http): more standard http content types (feat(netty-codec-http): more standard http content types #16036) (feat(netty-codec-http): more standard http content types (#16036) #16122)
- Limit QUIC stream and field section sizes to protocol max (Limit QUIC stream and field section sizes to protocol max #16117) (Limit QUIC stream and field section sizes to protocol max (#16117) #16123)
- Propagate the "android" property into individual iterations (Propagate the "android" property into individual iterations #16113) (Propagate the "android" property into individual iterations (#16113) #16120)
- chore: Remove warning when compile with Java 25 (chore: Remove warning when compile with Java 25 #16124)
- codec-dns: Decompress MX RDATA exchange domain names during DNS record decoding (codec-dns: Decompress MX RDATA exchange domain names during DNS record decoding #16040) (codec-dns: Decompress MX RDATA exchange domain names during DNS record decoding (#16040) #16128)
- Update BouncyCastle from 1.82 to 1.83 (Update BouncyCastle from 1.82 to 1.83 #16096) (Update BouncyCastle from 1.82 to 1.83 (#16096) #16126)
- Channel*Invoker: Remove self return and just return void (Channel*Invoker: Remove self return and just return void #16073)
- Buddy allocation for large buffers in adaptive allocator (Buddy allocation for large buffers in adaptive allocator #16053) (Buddy allocation for large buffers in adaptive allocator (#16053) #16133)
- Reimplement IORING_OP_SENDMSG_ZC (Reimplement IORING_OP_SENDMSG_ZC #16130) (Reimplement IORING_OP_SENDMSG_ZC (#16130) #16137)
- Bump BlockHound version to 1.0.16.RELEASE (Bump BlockHound version to 1.0.16.RELEASE #16134) (Bump BlockHound version to 1.0.16.RELEASE (#16134) #16135)
- Await termination of SslHandler executor (Await termination of SslHandler executor #16138) (Await termination of SslHandler executor (#16138) #16141)
- SslHandler: Only resume on EventLoop if EventLoop is not shutting down already (SslHandler: Only resume on EventLoop if EventLoop is not shutting down already #16144)
- Only support cancellation for scheduled tasks (Only support cancellation for scheduled tasks #16143)
- Wrap ECONNREFUSED in PortUnreachableException for UDP (Wrap ECONNREFUSED in PortUnreachableException for UDP #16131) (Wrap ECONNREFUSED in PortUnreachableException for UDP (#16131) #16151)
- Fix leak in OpenSslPrivateKeyMethodTest (Fix leak in OpenSslPrivateKeyMethodTest #16145) (Fix leak in OpenSslPrivateKeyMethodTest (#16145) #16148)
- Ensure ChannelPromise that are used by ChannelOutboundHandler will al… (Ensure ChannelPromise that are used by ChannelOutboundHandler will al… #16052) (Ensure ChannelPromise that are used by ChannelOutboundHandler will al… (#16052) #16152)
- Improve exception message when first HTTP2SettingsFrame has the ack f… (Improve exception message when first HTTP2SettingsFrame has the ack f… #16153) (Improve exception message when first HTTP2SettingsFrame has the ack f… (#16153) #16155)
- Bump up JDK 26 EA to latest version (Bump up JDK 26 EA to latest version #16156)
- Bump com.ning:compress-lzf (5.0) (Bump com.ning:compress-lzf (5.0) #16161)
- EventLoopGroup should not extend ScheduledExecutorService (EventLoopGroup should not extend ScheduledExecutorService #16157)
- Remove unordered and non-sticky event executors (Remove unordered and non-sticky event executors #16164)
- Correctly return all TransportParameters (Correctly return all TransportParameters #16162) (Correctly return all TransportParameters (#16162) #16169)
- Add missing return which could lead to double notification of a promise and so unexpected exception (Add missing return which could lead to double notification of a promise and so unexpected exception #16168)
- Fix incorrect assert when handling id to channel mappings (Fix incorrect assert when handling id to channel mappings #16163) (Fix incorrect assert when handling id to channel mappings (#16163) #16170)
- Update to Quiche 0.24.8 (Update to Quiche 0.24.8 #16182) (Update to Quiche 0.24.8 (#16182) #16183)
- Remove all usage of PrivilegedAction (Remove all usage of PrivilegedAction #16172)
- Introduce CompletionHandler to allow GC free outbound operations (Introduce CompletionHandler to allow GC free outbound operations #16165)
- SSL: Ensure used cipher in test can be used by any Java version (SSL: Ensure used cipher in test can be used by any Java version #16180) (SSL: Ensure used cipher in test can be used by any Java version (#16180) #16186)
- Remove more AccessController usage (Remove more AccessController usage #16194)
- Remove JdkAlpnSslUtils (Remove JdkAlpnSslUtils #16193)
- Remove CleanerJava6 (Remove CleanerJava6 #16196)
- Fix possible ClassCastException when using ReadOnlyAbstractByteBuf (Fix possible ClassCastException when using ReadOnlyAbstractByteBuf #16188) (Fix possible ClassCastException when using ReadOnlyAbstractByteBuf (#16188) #16195)
- Avoid loosing original read exception (Avoid loosing original read exception #16199) (Avoid loosing original read exception (#16199) #16205)
- Fix adaptive allocator bug from not noticing failed allocation (Fix adaptive allocator bug from not noticing failed allocation #16200) (Fix adaptive allocator bug from not noticing failed allocation (#16200) #16203)
- Remove Java version checks (Remove Java version checks #16192)
- Delay getBytes() call in ReferenceCountedOpenSslServerContext (Delay getBytes() call in ReferenceCountedOpenSslServerContext #16208) (Delay getBytes() call in ReferenceCountedOpenSslServerContext (#16208) #16213)
- Improve chunk picking for the large-size buddy allocator (Improve chunk picking for the large-size buddy allocator #16179) (Improve chunk picking for the large-size buddy allocator (#16179) #16218)
- codec-http2: make the default header key and value validators public (codec-http2: make the default header key and value validators public #16223)
- Update graal dependencies to 25.0.2 (Update graal dependencies to 25.0.2 #16206)
- Move default compression options into static variable in HttpContentCompressor (Move default compression options into static variable in HttpContentCompressor #16210) (Move default compression options into static variable in HttpContentCompressor (#16210) #16221)
- Remove unnecessary null check in WebSocketServerExtensionHandler (Remove unnecessary null check in WebSocketServerExtensionHandler #16201) (Remove unnecessary null check in WebSocketServerExtensionHandler (#16201) #16222)
- Use recommanded finalize chain pattern when override finalize() method (Use recommanded finalize chain pattern when override finalize() method #16212) (Use recommanded finalize chain pattern when override finalize() method (#16212) #16226)
- Reduce allocations on DefaultHeaders::containsValue (Reduce allocations on DefaultHeaders::containsValue #15843) (Reduce allocations on DefaultHeaders::containsValue (#15843) #16224)
- remove duplicated SSL.getSniHostname(ssl) call in ExtendedOpenSslSession (remove duplicated SSL.getSniHostname(ssl) call in ExtendedOpenSslSession #16209) (remove duplicated SSL.getSniHostname(ssl) call in ExtendedOpenSslSession (#16209) #16214)
- Update to netty-tcnative 2.0.75.Final (Update to netty-tcnative 2.0.75.Final #16229)
- Remove unnecessary allocations and abstractions in HttpContentCompressor (Remove unnecessary allocations and abstractions in HttpContentCompressor #16211) (Remove unnecessary allocations and abstractions in HttpContentCompressor (#16211) #16232)
- Update to latest JDK 26 EA release (Update to latest JDK 26 EA release #16230) (Update to latest JDK 26 EA release (#16230) #16233)
- HTTP3: Allow to support non-standard HTTP3 settings (HTTP3: Allow to support non-standard HTTP3 settings #16171) (HTTP3: Allow to support non-standard HTTP3 settings (#16171) #16238)
- Fix Incorrect nanos-to-millis conversion in epoll_wait EINTR retry lo… (Fix Incorrect nanos-to-millis conversion in epoll_wait EINTR retry lo… #16249)
- Allocate one large segment and slice for each MsgHdrMemory (Allocate one large segment and slice for each MsgHdrMemory #16234) (Allocate one large segment and slice for each MsgHdrMemory (#16234) #16251)
- Make RefCntOpenSslContext.deallocate more robust (Make RefCntOpenSslContext.deallocate more robust #16253) (Make RefCntOpenSslContext.deallocate more robust (#16253) #16258)
- Future.sync() should rethrow by wrapping errors in a CompletionExcep… (Future.sync*() should rethrow by wrapping errors in a CompletionExcep… #16187)*
- Update to gcc for arm 10.3-2021.07 (Update to gcc for arm 10.3-2021.07 #16255) (Update to gcc for arm 10.3-2021.07 (#16255) #16262)
- Epoll: Fix excessive CPU usage when Channel is only registered but no… (Epoll: Fix excessive CPU usage when Channel is only registered but no… #16260)
- Add acmeIdentifier extension support to pkitesting (Add acmeIdentifier extension support to pkitesting #16256) (Add acmeIdentifier extension support to pkitesting (#16256) #16261)
- HTTP2: Correctly account for padding when decompress (HTTP2: Correctly account for padding when decompress #16266)
- Avoid allocation in HttpObjectEncoder.addEncodedLengthHex method (Avoid allocation in HttpObjectEncoder.addEncodedLengthHex method #16241) (Avoid allocation in HttpObjectEncoder.addEncodedLengthHex method (#16241) #16268)
- Forward port 5.0: Automatic backporting workflow from 4.1 to 4.2 (Forward port 5.0: Automatic backporting workflow from 4.1 to 4.2 #16285)
- Forward port 5.0: Add more porting workflows (Forward port 5.0: Add more porting workflows #16287)
- Forward port 5.0: Remove the unpooled allocator from test permutations (Forward port 5.0: Remove the unpooled allocator from test permutations #16289)
- Forward port 5.0: Some polishing of the porting workflows (Forward port 5.0: Some polishing of the porting workflows #16291)
- Allow to set destination connection id when creating a client side QuicheChannel (Allow to set destination connection id when creating a client side QuicheChannel #16286) (Allow to set destination connection id when creating a client side QuicheChannel (#16286) #16294)
- Forward port 5.0: Add javadoc to clarify responsibility of the user when generating the remote connection id (Forward port 5.0: Add javadoc to clarify responsibility of the user when generating the remote connection id #16297)
- Expose QuicSslContextBuilder::sni (Expose QuicSslContextBuilder::sni #16178) (Expose QuicSslContextBuilder::sni (#16178) #16281)
- Forward port 5.0: Update to latest JDK26 EA build (Forward port 5.0: Update to latest JDK26 EA build #16296)
- Forward port 5.0: Make the build run faster (Forward port 5.0: Make the build run faster #16298)
- Fix IDE warnings in SslHandler (Fix IDE warnings in SslHandler #16237) (Fix IDE warnings in SslHandler (#16237) #16299)
- Forward port 5.0: Fix high-order bit aliasing in HttpUtil.validateToken (Forward port 5.0: Fix high-order bit aliasing in HttpUtil.validateToken #16304)
- Forward port 5.0: Support boringssl SSLCredential API (Forward port 5.0: Support boringssl SSLCredential API #16302)
- Forward port 5.0: Avoid unnecessary SSL.getVersion() call and string allocation in ReferenceCountedOpenSslEngine (Forward port 5.0: Avoid unnecessary SSL.getVersion() call and string allocation in ReferenceCountedOpenSslEngine #16305)
- Forward port 5.0: Decrease Long allocations and map.put calls in ReferenceCountedOpenSllEngine in handshake() method (Forward port 5.0: Decrease Long allocations and map.put calls in ReferenceCountedOpenSllEngine in handshake() method #16301)
- Auto-port 5.0: Support more branch freedom for auto-porting (Auto-port 5.0: Support more branch freedom for auto-porting #16311)
- Auto-port 5.0: fix: the precedence of + is higher than >> (Auto-port 5.0: fix: the precedence of + is higher than >> #16317)
- Improve multi-byte access performance when UNALIGNED availability is unknown (Improve multi-byte access performance when UNALIGNED availability is unknown #16207) (Improve multi-byte access performance when UNALIGNED availability is unknown (#16207) #16319)
- Auto-port 5.0: Fix pooled arena accounting tests (Auto-port 5.0: Fix pooled arena accounting tests #16325)
- Auto-port 5.0: Fix flaky PooledByteBufAllocatorTest (Auto-port 5.0: Fix flaky PooledByteBufAllocatorTest #16323)
- Auto-port 5.0: Fix RunInFastThreadLocalThreadExtension (Auto-port 5.0: Fix RunInFastThreadLocalThreadExtension #16329)
- Auto-port 5.0: AdaptivePoolingAllocator: call
unreserveMatchingBuddy(...) if byteBuf initialization failed (Auto-port 5.0: AdaptivePoolingAllocator: call unreserveMatchingBuddy(...) if byteBuf initialization failed #16332)
- Auto-port 5.0: AdaptiveByteBufAllocator: make sure byteBuf.capacity() not greater than byteBuf.maxCapacity() (Auto-port 5.0: AdaptiveByteBufAllocator: make sure byteBuf.capacity() not greater than byteBuf.maxCapacity() #16318)
- Auto-port 5.0: Recycler should not use thread locals unless they get cleaned up (Auto-port 5.0: Recycler should not use thread locals unless they get cleaned up #16335)
- IoUring: Only complete deregistration promise once we received all completions (IoUring: Only complete deregistration promise once we received all completions #16336)
- Auto-port 5.0: OpenSSL: Don't leak OpenSslKeyManagerProvider on exception (Auto-port 5.0: OpenSSL: Don't leak OpenSslKeyManagerProvider on exception #16339)
- Auto-port 5.0: Mark LoggingHandlerTest with @isolated to fix flaky build (Auto-port 5.0: Mark LoggingHandlerTest with @Isolated to fix flaky build #16341)
- Auto-port 5.0: Fix flaky HTTP/2 test (Auto-port 5.0: Fix flaky HTTP/2 test #16349)
- Fix HTTP/2 push frame test (Fix HTTP/2 push frame test #16343) (Fix HTTP/2 push frame test (#16343) #16354)
- Fix flaky RenegotiateTest (Fix flaky RenegotiateTest #16351) (Fix flaky RenegotiateTest (#16351) #16356)
- IoUring: Don't use RDHUP for non stream Channel implementations (IoUring: Don't use RDHUP for non stream Channel implementations #16357)
- Auto-port 5.0: Fix flaky AbstractSingleThreadEventLoopTest (Auto-port 5.0: Fix flaky AbstractSingleThreadEventLoopTest #16358)
- Auto-port 5.0: Use headers.setInt() in HttpObjectAggregator instead of set() and use concrete version of String.valueOf in CharSequenceValueConverter (Auto-port 5.0: Use headers.setInt() in HttpObjectAggregator instead of set() and use concrete version of String.valueOf in CharSequenceValueConverter #16360)
- SSL test: Don't depend on property value in test (SSL test: Don't depend on property value in test #16346) (SSL test: Don't depend on property value in test (#16346) #16361)
- Auto-port 5.0: AdaptivePoolingAllocator: assign a more explicit value to BuddyChunk.freeListCapacity (Auto-port 5.0: AdaptivePoolingAllocator: assign a more explicit value to BuddyChunk.freeListCapacity #16369)
- Auto-port 5.0: Don't assume CertificateFactory is thread-safe (Auto-port 5.0: Don't assume CertificateFactory is thread-safe #16366)
- IoUring: Fix buffer leak in DatagramChannel implementation when recv … (IoUring: Fix buffer leak in DatagramChannel implementation when recv … #16359) (IoUring: Fix buffer leak in DatagramChannel implementation when recv … (#16359) #16363)
- Auto-port 5.0: Add more diagnostic points to PooledByteBufAllocatorTest.createNewThr… (Auto-port 5.0: Add more diagnostic points to PooledByteBufAllocatorTest.createNewThr… #16371)
- Auto-port 5.0: Stabilize AbstractByteBufTest.testBytesInArrayMultipleThreads (Auto-port 5.0: Stabilize AbstractByteBufTest.testBytesInArrayMultipleThreads #16374)
- Auto-port 5.0: Avoid unnecessary Long.toString() allocation in HttpObjectDecoder (Auto-port 5.0: Avoid unnecessary Long.toString() allocation in HttpObjectDecoder #16375)
- Fix leak in SniHandlerTest (Fix leak in SniHandlerTest #16367) (Fix leak in SniHandlerTest (#16367) #16376)
- Auto-port 5.0: Stabilize AbstractByteBufTest.testToStringMultipleThreads (Auto-port 5.0: Stabilize AbstractByteBufTest.testToStringMultipleThreads #16383)
- Auto-port 5.0: Remove reference counting from size classed chunks (Auto-port 5.0: Remove reference counting from size classed chunks #16378)
- Fix riscv64 build for Netty 5 (Fix riscv64 build for Netty 5 #16382)
- Auto-port 5.0: Fix NioIoHandlerTest on macOS (Auto-port 5.0: Fix NioIoHandlerTest on macOS #16398)
- Auto-port 5.0: IoUring: Reduce unnecessary io_uring_enter syscalls on non-blocking path (Auto-port 5.0: IoUring: Reduce unnecessary io_uring_enter syscalls on non-blocking path #16397)
- Update some dependencies (Update some dependencies #16198) (Update some dependencies (#16198) #16215) (Update some dependencies (#16198) (#16215) #16400)
- Auto-port 5.0: Remove duplicated contains calls in WebSockets (Auto-port 5.0: Remove duplicated contains calls in WebSockets #16395)
- Auto-port 5.0: Swap conditions to avoid native calls in ReferenceCountedOpenSslEngine.rejectRemoteInitiatedRenegotiation (Auto-port 5.0: Swap conditions to avoid native calls in ReferenceCountedOpenSslEngine.rejectRemoteInitiatedRenegotiation #16394)
- LocalChannel: Remove dependency on SingleThreadEventExecutor (LocalChannel: Remove dependency on SingleThreadEventExecutor #16393) (LocalChannel: Remove dependency on SingleThreadEventExecutor (#16393) #16405)
- Auto-port 5.0: Fix autoport fetching into the existing branch - again (Auto-port 5.0: Fix autoport fetching into the existing branch - again #16416)
- Auto-port 5.0: Capture why threads get stuck in testCopyMultipleThreads0 (Auto-port 5.0: Capture why threads get stuck in testCopyMultipleThreads0 #16420)
- Auto-port 5.0: Remove unnecessary array access in DefaultAttributeMap.orderedCopyOnInsert (Auto-port 5.0: Remove unnecessary array access in DefaultAttributeMap.orderedCopyOnInsert #16422)
- Auto-port 5.0: Fix HttpObjectAggregator leaving connection stuck after 413 with AUTO… (Auto-port 5.0: Fix HttpObjectAggregator leaving connection stuck after 413 with AUTO… #16402)
- Fire the QuicChannel datagram extension event before the channel becomes active (Fire the QuicChannel datagram extension event before the channel becomes active #16425) (Fire the QuicChannel datagram extension event before the channel becomes active (#16425) #16431)
- Auto-port 5.0: Whitelist JMH annotation processing in microbench module (Auto-port 5.0: Whitelist JMH annotation processing in microbench module #16429)
- Auto-port 5.0: HTTP2: Ensure preface is flushed in all cases (Auto-port 5.0: HTTP2: Ensure preface is flushed in all cases #16433)
- Auto-port 5.0: Support QuicheQuicSslEngine hostname identification algorithm. (Auto-port 5.0: Support QuicheQuicSslEngine hostname identification algorithm. #16434)
- Auto-port 5.0: Fix client_max_window_bits parameter handling in permessage-deflate extension (Auto-port 5.0: Fix client_max_window_bits parameter handling in permessage-deflate extension #16436)
- Auto-port 5.0: Kqueue: Correctly handle registrations (Auto-port 5.0: Kqueue: Correctly handle registrations #16444)
- Auto-port 5.0: Kqueue: Correctly use KqueueIoOps.data() when update change list (Auto-port 5.0: Kqueue: Correctly use KqueueIoOps.data() when update change list #16445)
- Auto-port 5.0: AbstractByteBuf._internalNioBuffer() might throw exception (Auto-port 5.0: AbstractByteBuf._internalNioBuffer() might throw exception #16452)
- Fix UnsupportedOperationException in readTrailingHeaders (Fix UnsupportedOperationException in readTrailingHeaders #16412) (Fix UnsupportedOperationException in readTrailingHeaders (#16412) #16453)
- Auto-port 5.0: Native transports: Fix possible fd leak when fcntl fails. (Auto-port 5.0: Native transports: Fix possible fd leak when fcntl fails. #16447)
- Auto-port 5.0: Kqueue: Fix undefined behaviour when GetStringUTFChars fails and SO_ACCEPTFILTER is supported (Auto-port 5.0: Kqueue: Fix undefined behaviour when GetStringUTFChars fails and SO_ACCEPTFILTER is supported #16449)
- Auto-port 5.0: Native transports: Fix undefined behaviour when GetStringUTFChars fails while open FD (Auto-port 5.0: Native transports: Fix undefined behaviour when GetStringUTFChars fails while open FD #16457)
- Auto-port 5.0: Kqueue: Possible overflow when using netty_kqueue_bsdsocket_setAcceptFilter(...) (Auto-port 5.0: Kqueue: Possible overflow when using netty_kqueue_bsdsocket_setAcceptFilter(...) #16458)
- Auto-port 5.0: Epoll: Add null checks for safety reasons (Auto-port 5.0: Epoll: Add null checks for safety reasons #16462)
- Auto-port 5.0: DnsNameResolver: Skip test if we can not bind TCP and UDP to the same port (Auto-port 5.0: DnsNameResolver: Skip test if we can not bind TCP and UDP to the same port #16465)
- Make unpooled buffers avoid shared arenas (Make unpooled buffers avoid shared arenas #16443) (Make unpooled buffers avoid shared arenas (#16443) #16470)
- Auto-port 5.0: Epoll: Fix support for IP_RECVORIGDSTADDR (Auto-port 5.0: Epoll: Fix support for IP_RECVORIGDSTADDR #16469)
- Auto-port 5.0: Epoll: Use correct value to initialize mmsghdr.msg_namelen (Auto-port 5.0: Epoll: Use correct value to initialize mmsghdr.msg_namelen #16466)
- Auto-port 5.0: AdaptivePoolingAllocator: remove
ensureAccessible() call in capacity(int) method (Auto-port 5.0: AdaptivePoolingAllocator: remove ensureAccessible() call in capacity(int) method #16476)
- Auto-port 5.0: IoUring: Correctly unregister native functions on OnLoad failure (Auto-port 5.0: IoUring: Correctly unregister native functions on OnLoad failure #16491)
- Auto-port 5.0: Kqueue: Add testsuite on macOS during PR validation (Auto-port 5.0: Kqueue: Add testsuite on macOS during PR validation #16472)
- Epoll: Remove outdated docs about usage of edge-triggered (Epoll: Remove outdated docs about usage of edge-triggered #16478) (Epoll: Remove outdated docs about usage of edge-triggered (#16478) #16490)
- Auto-port 5.0: QUIC: Correctly handle selection of alpn protos (Auto-port 5.0: QUIC: Correctly handle selection of alpn protos #16492)
- Auto-port 5.0: QUIC: Correctly handle malloc errors during ssl context creation (Auto-port 5.0: QUIC: Correctly handle malloc errors during ssl context creation #16493)
- Auto-port 5.0: QUIC: Don'l leak memory when context is detroyed (Auto-port 5.0: QUIC: Don'l leak memory when context is detroyed #16494)
- Auto-port 5.0: Quic: Fix global reference leak (Auto-port 5.0: Quic: Fix global reference leak #16495)
- Auto-port 5.0: Cleanup: Fix typo in method name (Auto-port 5.0: Cleanup: Fix typo in method name #16496)
- Auto-port 5.0: AdaptivePoolingAllocator: Fix assertion for size class multiple of 32 (Auto-port 5.0: AdaptivePoolingAllocator: Fix assertion for size class multiple of 32 #16498)
- Auto-port 5.0: ByteBufAllocatorAllocPatternBenchmark: Fix case sensitivity in benchmark method name check (Auto-port 5.0: ByteBufAllocatorAllocPatternBenchmark: Fix case sensitivity in benchmark method name check #16499)
- Avoid unpooled allocator in
CloseWebSocketFrame (Avoid unpooled allocator in CloseWebSocketFrame #16486) (Avoid unpooled allocator in CloseWebSocketFrame (#16486) #16512)
- Auto-port 5.0: IoUring: Correctly handle the case when malloc fails during probe (Auto-port 5.0: IoUring: Correctly handle the case when malloc fails during probe #16513)
- Auto-port 5.0: IoUring: Correctly unload native stuff (Auto-port 5.0: IoUring: Correctly unload native stuff #16514)
- Auto-port 5.0: IoUring: Use more correct bitmask check (Auto-port 5.0: IoUring: Use more correct bitmask check #16516)
- Auto-port 5.0: IoUring: Use correct errno value in exception (Auto-port 5.0: IoUring: Use correct errno value in exception #16515)
- Auto-port 5.0: IoUring: Add NULL check for GetStringUTFChars(...) (Auto-port 5.0: IoUring: Add NULL check for GetStringUTFChars(...) #16518)
- Auto-port 5.0: Reduce allocations in WebSocketServerHandshaker13 (Auto-port 5.0: Reduce allocations in WebSocketServerHandshaker13 #16519)
- Fix docker image for cross-compiling (Fix docker image for cross-compiling #16522)
- Auto-port 5.0: IoUring: Correctly handle return value of sys_io_uring_register(...) while register und unregister buffer ring (Auto-port 5.0: IoUring: Correctly handle return value of sys_io_uring_register(...) while register und unregister buffer ring #16517)
- Auto-port 5.0: Epoll / IoUring: setTcpMg5Sig(...) might overflow (Auto-port 5.0: Epoll / IoUring: setTcpMg5Sig(...) might overflow #16521)
- Replace
ClosedChannelException with StacklessClosedChannelException (Replace ClosedChannelException with StacklessClosedChannelException #16506) (Replace ClosedChannelException with StacklessClosedChannelException (#16506) #16524)
- Auto-port 5.0: Allocate less in QueryStringDecoder.addParam for typical use case (Auto-port 5.0: Allocate less in QueryStringDecoder.addParam for typical use case #16530)
- Enforce io.netty.maxDirectMemory accounting on all Java versions (Enforce io.netty.maxDirectMemory accounting on all Java versions #16489) (Enforce io.netty.maxDirectMemory accounting on all Java versions (#16489) #16531)
- Auto-port 5.0: JdkZlibDecoder: accumulate decompressed output before firing channelRead (Auto-port 5.0: JdkZlibDecoder: accumulate decompressed output before firing channelRead #16533)
- Auto-port 5.0: Eliminate redundant bounds checks in CompositeByteBuf accessors (Auto-port 5.0: Eliminate redundant bounds checks in CompositeByteBuf accessors #16534)
- Auto-port 5.0: Limit the number of Continuation frames per HTTP2 Headers (Auto-port 5.0: Limit the number of Continuation frames per HTTP2 Headers #16535)
- Merge commit from fork (Merge commit from fork #16538)
- Auto-port 5.0: Replace usage of strerror with thread-safe alternative (Auto-port 5.0: Replace usage of strerror with thread-safe alternative #16556)
- 5.0 port: Fix IndexOutOfBoundsException in StompSubframeDecoder on heartbeat (Fix IndexOutOfBoundsException in StompSubframeDecoder on heartbeat #16539) (5.0 port: Fix IndexOutOfBoundsException in StompSubframeDecoder on heartbeat (#16539) #16552)
- Auto-port 5.0: Kqueue: sendfile EINTR doesn't advance offset — data duplication (Auto-port 5.0: Kqueue: sendfile EINTR doesn't advance offset — data duplication #16553)
- Auto-port 5.0: Ensure the CRYPTO_BUFFER_POOL is also freed when we fail creating the SSLContext (Auto-port 5.0: Ensure the CRYPTO_BUFFER_POOL is also freed when we fail creating the SSLContext #16567)
- Auto-port 5.0: Less logging in AWS-LC build (Auto-port 5.0: Less logging in AWS-LC build #16566)
- Increase timeouts for QuicChannelConnectTest (Increase timeouts for QuicChannelConnectTest #16564)
- Auto-port 5.0: Lazy init ArrayList in DefaultHeaders.getAll (Auto-port 5.0: Lazy init ArrayList in DefaultHeaders.getAll #16563)
- Auto-port 5.0: Fix implementation of strerror_r_xsi for GNU (Auto-port 5.0: Fix implementation of strerror_r_xsi for GNU #16562)
- Auto-port 5.0: Avoid leak in PemReader on OutOfDirectMemoryError (Auto-port 5.0: Avoid leak in PemReader on OutOfDirectMemoryError #16577)
- Auto-port 5.0: Native DNS resolver: Guard against malloc failures (Auto-port 5.0: Native DNS resolver: Guard against malloc failures #16585)
- Auto-port 5.0: Include user properties and subscription IDs in MqttProperties#isEmpty (Auto-port 5.0: Include user properties and subscription IDs in MqttProperties#isEmpty #16583)
- Revert to PR build to Ubuntu 22.04 (Revert to PR build to Ubuntu 22.04 #16595) (Revert to PR build to Ubuntu 22.04 (#16595) #16597)
- Auto-port 5.0: Stabilize read-only toStringMultipleThreads1 (Auto-port 5.0: Stabilize read-only toStringMultipleThreads1 #16609)
- Auto-port 5.0: Bump org.codehaus.plexus:plexus-utils from 3.4.2 to 4.0.3 in /codec-native-quic (Auto-port 5.0: Bump org.codehaus.plexus:plexus-utils from 3.4.2 to 4.0.3 in /codec-native-quic #16590)
- Auto-port 5.0: Stabilize more AbstractByteBufTests (Auto-port 5.0: Stabilize more AbstractByteBufTests #16612)
- Auto-port 5.0: Remove note about needing 256-bit for PQC (Auto-port 5.0: Remove note about needing 256-bit for PQC #16614)
- Auto-port 5.0: Fix parsing HTTP chunks with multiple extensions (Auto-port 5.0: Fix parsing HTTP chunks with multiple extensions #16587)
- Fix component search fast path (Fix component search fast path #16548) (Fix component search fast path (#16548) #16602)
- Auto-port 5.0: Epoll: Cleanup code to always return negative value on failure (Auto-port 5.0: Epoll: Cleanup code to always return negative value on failure #16600)
- Auto-port 5.0: Native transports: Correctly create pipe when pipe2 is not supported (Auto-port 5.0: Native transports: Correctly create pipe when pipe2 is not supported #16599)
- Auto-port 5.0: Stabilize testSessionInvalidate for Conscrypt (Auto-port 5.0: Stabilize testSessionInvalidate for Conscrypt #16617)
- Auto-port 5.0: Quic: Correctly handle SSL_CTX_new failures (Auto-port 5.0: Quic: Correctly handle SSL_CTX_new failures #16624)
- Auto-port 5.0: Make LocalIoHandle public (Auto-port 5.0: Make LocalIoHandle public #16625)
- Auto-port 5.0: Quic: Fix shadowing of variable which leads to incorrectly handling errors (Auto-port 5.0: Quic: Fix shadowing of variable which leads to incorrectly handling errors #16627)
- Auto-port 5.0: fix FFM address semantics in directBufferAddress (Auto-port 5.0: fix FFM address semantics in directBufferAddress #16641)
- Fix
shutdownInput bug in kqueue for empty recv buffer (Fix shutdownInput bug in kqueue for empty recv buffer #16630) (Fix shutdownInput bug in kqueue for empty recv buffer (#16630) #16639)
- Auto-port 5.0: Kqueue: Fix usage of LOCAL_PEERPID (Auto-port 5.0: Kqueue: Fix usage of LOCAL_PEERPID #16645)
- Auto-port 5.0: Move Http2FrameCodecSubClassTest to correct package (Auto-port 5.0: Move Http2FrameCodecSubClassTest to correct package #16644)
- Fix file descriptor reuse bug in kqueue (Fix file descriptor reuse bug in kqueue #16650) (Fix file descriptor reuse bug in kqueue (#16650) #16651)
- Auto-port 5.0: Propagate exceptions from inner threads in buffer tests (Auto-port 5.0: Propagate exceptions from inner threads in buffer tests #16653)
- Auto-port 5.0: Use stream error for maxContentLength exceeded in InboundHttp2ToHttpAdapter (Auto-port 5.0: Use stream error for maxContentLength exceeded in InboundHttp2ToHttpAdapter #16628)
- Auto-port 5.0: Avoid ArrayQueue allocation in HttpServerCodec (Auto-port 5.0: Avoid ArrayQueue allocation in HttpServerCodec #16648)
- HTTP2: Ensure HTTP2 preface is always send as first message (HTTP2: Ensure HTTP2 preface is always send as first message #16636) (HTTP2: Ensure HTTP2 preface is always send as first message (#16636) #16662)
- Auto-port 5.0: Avoid byte[] allocation in DefaultChannelId (Auto-port 5.0: Avoid byte[] allocation in DefaultChannelId #16661)
- Bump BouncyCastle from 1.83 to 1.84 (Bump BouncyCastle from 1.83 to 1.84 #16660) (Bump BouncyCastle from 1.83 to 1.84 (#16660) #16668)
- Auto-port 5.0: Add maxFrameLength support to ProtobufVarint32FrameDecoder (Auto-port 5.0: Add maxFrameLength support to ProtobufVarint32FrameDecoder #16659)
- Auto-port 5.0: Update outdated codec-http3 README.md (Auto-port 5.0: Update outdated codec-http3 README.md #16670)
- Auto-port 5.0: Fix IllegalReferenceCountException in AdaptiveByteBuf.deallocate() (Auto-port 5.0: Fix IllegalReferenceCountException in AdaptiveByteBuf.deallocate() #16673)
- Auto-port 5.0: Bump up netty-tcnative to 2.0.76.Final (Auto-port 5.0: Bump up netty-tcnative to 2.0.76.Final #16671)
- HTTP2: Ensure HTTP2 preface is always send as first message (also on … (HTTP2: Ensure HTTP2 preface is always send as first message (also on … #16674)
- Skip VarHandle init when unaligned access is supported (Skip VarHandle init when unaligned access is supported #16664) (Skip VarHandle init when unaligned access is supported (#16664) #16676)
- Add generic FileRegion support in io_uring stream channel (Add generic FileRegion support in io_uring stream channel #16571) (Add generic FileRegion support in io_uring stream channel (#16571) #16677)
- Auto-port 5.0: ByteBufAllocatorAllocPatternBenchmark: Ensure each index appears exactly once in releaseIndexes (Auto-port 5.0: ByteBufAllocatorAllocPatternBenchmark: Ensure each index appears exactly once in releaseIndexes #16678)
- Improve flaky NioSocketChannelTest (Improve flaky NioSocketChannelTest #16679) (Improve flaky NioSocketChannelTest (#16679) #16684)
- Auto-port 5.0: Deprecate ObjectCleaner and remove usage (Auto-port 5.0: Deprecate ObjectCleaner and remove usage #16686)
- Auto-port 5.0: Update to netty-tcnative 2.0.77.Final (Auto-port 5.0: Update to netty-tcnative 2.0.77.Final #16696)
- Auto-port 5.0: Avoid NPE in JdkSslClientContext when TrustManagerFactory returns null (Auto-port 5.0: Avoid NPE in JdkSslClientContext when TrustManagerFactory returns null #16701)
- Auto-port 5.0: Avoid TCPFastOpen in KQueueCompositeBufferGatheringWriteTest (Auto-port 5.0: Avoid TCPFastOpen in KQueueCompositeBufferGatheringWriteTest #16698)
- Auto-port 5.0: Update JUnit to 5.14.0 and fix leak scope handling (Auto-port 5.0: Update JUnit to 5.14.0 and fix leak scope handling #16703)
- Auto-port 5.0: Avoid NPE in JdkSslServerContext when TrustManagerFactory returns nul… (Auto-port 5.0: Avoid NPE in JdkSslServerContext when TrustManagerFactory returns nul… #16704)
- Auto-port 5.0: Epoll: Correctly delete fd from epoll if there is nothing to handle (Auto-port 5.0: Epoll: Correctly delete fd from epoll if there is nothing to handle #16706)
- Update many dependencies (Update many dependencies #16707) (Update many dependencies (#16707) #16708)
- Auto-port 5.0: Add UBI9 devcontainer (Auto-port 5.0: Add UBI9 devcontainer #16720)
- Load BouncyCastle providers independently (Load BouncyCastle providers independently #16710) (Load BouncyCastle providers independently (#16710) #16719)
- Consolidate fake exceptions in HTTP/2 tests into Http2TestUtil (Consolidate fake exceptions in HTTP/2 tests into Http2TestUtil #16712) (Consolidate fake exceptions in HTTP/2 tests into Http2TestUtil (#16712) #16726)
- Fix DiscardClient hang under -Dssl by using a client SSL context (Fix DiscardClient hang under -Dssl by using a client SSL context #16717) (Fix DiscardClient hang under -Dssl by using a client SSL context (#16717) #16727)
- Epoll: Use correct inital EpollIoOps (Epoll: Use correct inital EpollIoOps #16728) (Epoll: Use correct inital EpollIoOps (#16728) #16729)
- Auto-port 5.0: Activate noPrintGC by default (Auto-port 5.0: Activate noPrintGC by default #16734)
- Auto-port 5.0: H2: Add test for header value validation (Auto-port 5.0: H2: Add test for header value validation #16740)
- Merge commit from fork
- 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
- Fix compilation in HttpRequestDecoderTest
- Merge commit from fork
- Fix codec-dns tests
- Merge commit from fork
- Merge commit from fork
- Fix BrotliDecoder not forwarding all decompressed chunks
- Merge commit from fork
- Merge commit from fork
- Fix compilation in HttpClientCodecTest
- Auto-port 5.0: HTTP: Re-add constructor to HttpProxyHandler that was removed by mistake (Auto-port 5.0: HTTP: Re-add constructor to HttpProxyHandler that was removed by mistake #16751)
- Auto-port 5.0: Fix io_uring op completion TRACE logging (Auto-port 5.0: Fix io_uring op completion TRACE logging #16756)
- Auto-port 5.0: Revapi: Use default "oldVersion" (Auto-port 5.0: Revapi: Use default "oldVersion" #16775)
- Auto-port 5.0: Adaptive: Fix concurrency issue in adaptive allocator (Auto-port 5.0: Adaptive: Fix concurrency issue in adaptive allocator #16777)
- Make bulk byte moving in ByteBuf faster (Make bulk byte moving in ByteBuf faster #16780)
- Auto-port 5.0: Pin HTTP/RTSP version + method normalization to Locale.US (Auto-port 5.0: Pin HTTP/RTSP version + method normalization to Locale.US #16769)
- Auto-port 5.0: Avoid re-parsing openssl key material with non-cached provider (Auto-port 5.0: Avoid re-parsing openssl key material with non-cached provider #16761)
- Auto-port 5.0: Fill MsgHdrMemoryArray#hdrs with null entry on release (Auto-port 5.0: Fill MsgHdrMemoryArray#hdrs with null entry on release #16771)
- Quic: Ensure writes are done before notify close promise of QuicheQui… (Quic: Ensure writes are done before notify close promise of QuicheQui… #16760)
- Auto-port 5.0: Pin multipart Content-Type / Content-Transfer-Encoding case folding to Locale.US (Auto-port 5.0: Pin multipart Content-Type / Content-Transfer-Encoding case folding to Locale.US #16782)
- Auto-port 5.0: Enable OpenSslCachingKeyMaterialProvider to evict stale entries after cert rotation (Auto-port 5.0: Enable OpenSslCachingKeyMaterialProvider to evict stale entries after cert rotation #16802)
- Auto-port 5.0: IoUring: extend user data from short to long (Auto-port 5.0: IoUring: extend user data from short to long #16806)
- Auto-port 5.0: Isolate tests that modify available Security providers (Auto-port 5.0: Isolate tests that modify available Security providers #16796)
- Auto-port 5.0: Remove dead native declarations (Auto-port 5.0: Remove dead native declarations #16786)
- Auto-port 5.0: Remove test annotations from a method that isn't a test (Auto-port 5.0: Remove test annotations from a method that isn't a test #16797)
- Auto-port 5.0: HTTP2: Use 100 as default max concurrent streams setting (Auto-port 5.0: HTTP2: Use 100 as default max concurrent streams setting #16817)
- Auto-port 5.0: IpFilter: Fix ClassCastException caused by IpSubnetFilter if only ipv6 rules are configured but remote peer is using ipv4 (Auto-port 5.0: IpFilter: Fix ClassCastException caused by IpSubnetFilter if only ipv6 rules are configured but remote peer is using ipv4 #16821)
- Auto-port 5.0: Fix ResumptionController wrapping (Auto-port 5.0: Fix ResumptionController wrapping #16818)
- Auto-port 5.0: Resolve all localhost addresses without querying DNS servers (Auto-port 5.0: Resolve all localhost addresses without querying DNS servers #16819)
- Auto-port 5.0: Fix memoryAddress() for direct ByteBuffers wrapped by Unpooled without Unsafe (Auto-port 5.0: Fix memoryAddress() for direct ByteBuffers wrapped by Unpooled without Unsafe #16823)
- IoUring: Stop generic FileRegion drain loop when transferred() reache… (IoUring: Stop generic FileRegion drain loop when transferred() reache… #16832)
- Auto-port 5.0: MQTT: Allow MQTT 5 CONNECT with password only (Auto-port 5.0: MQTT: Allow MQTT 5 CONNECT with password only #16835)
- Auto-port 5.0: Fix race in io.netty.channel.uring.IoUringIoHandler.wakeup (Auto-port 5.0: Fix race in io.netty.channel.uring.IoUringIoHandler.wakeup #16842)
- Auto-port 5.0: ChannelInitializer: correct misleading comment on exceptionCaught route (Auto-port 5.0: ChannelInitializer: correct misleading comment on exceptionCaught route #16854)
- Auto-port 5.0: HTTP/2: Parse request-target path like Vert.x (Auto-port 5.0: HTTP/2: Parse request-target path like Vert.x #16855)
- QUIC stateless-reset tokens derivable from connection-ID
- HttpObjectDecoder skips arbitrary initial control characters when only initial CRLF characters are permitted (HttpObjectDecoder skips arbitrary initial control characters when only initial CRLF characters are permitted #16861) (HttpObjectDecoder skips arbitrary initial control characters when only initial CRLF characters are permitted (#16861) #16863)
- Auto-port 5.0: IpSubnetFilter: Correctly handle ipv6 (Auto-port 5.0: IpSubnetFilter: Correctly handle ipv6 #16862)
- Quic: Correctly implement NoQuicTokenHandler to correctly not validate tokens (Quic: Correctly implement NoQuicTokenHandler to correctly not validate tokens #16867)
- HTTP3: Enforce default max section size limit of 8kb (HTTP3: Enforce default max section size limit of 8kb #16865)
- Netty HTTP/3 QPACK Blocked Streams Memory Exhaustion (Netty HTTP/3 QPACK Blocked Streams Memory Exhaustion #16879)
- Wrapping plain trust manager silently disables hostname verification (Wrapping plain trust manager silently disables hostname verification #16869)
- Auto-port 5.0: Epoll / Kqueue: Correctly handle receive of FD (Auto-port 5.0: Epoll / Kqueue: Correctly handle receive of FD #16902)
- Auto-port 5.0: HTTP2: DelegatingDecompressorFrameListener must release memory in all cases (Auto-port 5.0: HTTP2: DelegatingDecompressorFrameListener must release memory in all cases #16900)
- Auto-port 5.0: Dns: Insufficient Bailiwick Validation for NS Records (Auto-port 5.0: Dns: Insufficient Bailiwick Validation for NS Records #16899)
- Auto-port 5.0: DNS: Only cache CNAME if part of the queried domain (Auto-port 5.0: DNS: Only cache CNAME if part of the queried domain #16898)
- Auto-port 5.0: SSL: Use sane defaults as limits for the client hello length and timeout (Auto-port 5.0: SSL: Use sane defaults as limits for the client hello length and timeout #16897)
- Auto-port 5.0: Redis: Correctly release incomplete message on removal when using RedisArrayAggregator (Auto-port 5.0: Redis: Correctly release incomplete message on removal when using RedisArrayAggregator #16903)
- Auto-port 5.0: Add maxWindowLog parameter to ZstdDecoder to bound memory allocation (Auto-port 5.0: Add maxWindowLog parameter to ZstdDecoder to bound memory allocation #16895)
- Auto-port 5.0: Pass maxAllocation to Brotli and Zstd decoders (Auto-port 5.0: Pass maxAllocation to Brotli and Zstd decoders #16887)
- Auto-port 5.0: MQTT: Reject malformed no-payload packets with non-zero Remaining Length (Auto-port 5.0: MQTT: Reject malformed no-payload packets with non-zero Remaining Length #16889)
- Auto-port 5.0: Redis: Limit decoded length (Auto-port 5.0: Redis: Limit decoded length #16884)
- Auto-port 5.0: Fix incorrect bounds in error message of HpackDecoder.setMaxHeaderListSize (Auto-port 5.0: Fix incorrect bounds in error message of HpackDecoder.setMaxHeaderListSize #16913)
- Auto-port 5.0: SingleThreadEventExecutor: document Throwable safety contract on run() (Auto-port 5.0: SingleThreadEventExecutor: document Throwable safety contract on run() #16907)
- Forward port multiple security fixes to 5.0 (Forward port multiple security fixes to 5.0 #16914)
- Auto-port 5.0: Add epoch-based chunk cache purge with ring buffer for thread-local reuse (Auto-port 5.0: Add epoch-based chunk cache purge with ring buffer for thread-local reuse #16918)
- Auto-port 5.0: Add BlockHound exception for DnsQueryIdSpace (Auto-port 5.0: Add BlockHound exception for DnsQueryIdSpace #16906)
- Auto-port 5.0: Make HTTP/2 frame hashCode consistent with equals (Auto-port 5.0: Make HTTP/2 frame hashCode consistent with equals #16908)
- Use Splittable/ThreadLocalRandom to generate bulk data in tests (Use Splittable/ThreadLocalRandom to generate bulk data in tests #16808) (Use Splittable/ThreadLocalRandom to generate bulk data in tests (#16808) #16920)
- IoUring: fix io_uring datagram writes with non-zero readerIndex (IoUring: fix io_uring datagram writes with non-zero readerIndex #16905) (IoUring: fix io_uring datagram writes with non-zero readerIndex (#16905) #16922)
- Exclude internal events from IoHandler.run() return value in epoll, io_uring and kqueue (Exclude internal events from IoHandler.run() return value in epoll, io_uring and kqueue #16848) (Exclude internal events from IoHandler.run() return value in epoll, io_uring and kqueue (#16848) #16923)
- IoUring: Pass IORING_ENTER_NO_IOWAIT to report accurate CPU usage (IoUring: Pass IORING_ENTER_NO_IOWAIT to report accurate CPU usage #16739) (IoUring: Pass IORING_ENTER_NO_IOWAIT to report accurate CPU usage (#16739) #16924)
- Auto-port 5.0: Reject control characters at the boundary of HTTP method names (Auto-port 5.0: Reject control characters at the boundary of HTTP method names #16926)
- Avoid logging exceptions that tests ignore (Avoid logging exceptions that tests ignore #16891) (Avoid logging exceptions that tests ignore (#16891) #16925)
- Auto-port 5.0: Fix propagation of startTls for client SslContext handlers (Auto-port 5.0: Fix propagation of startTls for client SslContext handlers #16938)
- Try to fix/stabilize a number of flaky tests (Try to fix/stabilize a number of flaky tests #16934) (Try to fix/stabilize a number of flaky tests (#16934) #16937)
- IoUring: fix TCP Fast Open initial writes with readerIndex and composites (IoUring: fix TCP Fast Open initial writes with readerIndex and composites #16929) (IoUring: fix TCP Fast Open initial writes with readerIndex and composites (#16929) #16935)
- Auto-port 5.0: Update to latest tcnative release (Auto-port 5.0: Update to latest tcnative release #16940)
- Move test to shared testsuite (Move test to shared testsuite #16928) (Move test to shared testsuite (#16928) #16942)
- [Refactor] Useful helper method getOrDefault & cleaner abstraction ([Refactor] Useful helper method getOrDefault & cleaner abstraction #16927) ([Refactor] Useful helper method getOrDefault & cleaner abstraction (#16927) #16944)
- Auto-port 5.0: Make permessage-deflate server window size and memLevel configurable (Auto-port 5.0: Make permessage-deflate server window size and memLevel configurable #16943)
- Auto-port 5.0: Return early in DnsQueryContext.writeQuery when the query ID space is exhausted (Auto-port 5.0: Return early in DnsQueryContext.writeQuery when the query ID space is exhausted #16953)
- Auto-port 5.0: Fix HTTP 2 PUSH_PROMISE stream association validation (Auto-port 5.0: Fix HTTP 2 PUSH_PROMISE stream association validation #16954)
- Auto-port 5.0: Fix GZIP FEXTRA extra-field handling in JdkZlibDecoder (Auto-port 5.0: Fix GZIP FEXTRA extra-field handling in JdkZlibDecoder #16956)
- Auto-port 5.0: Http3FrameCodec handle fragmented payloads when skipping unknown frames (Auto-port 5.0: Http3FrameCodec handle fragmented payloads when skipping unknown frames #16962)
- Auto-port 5.0: Add opt-in validation of mandatory pseudo-header fields for HTTP/2 (Auto-port 5.0: Add opt-in validation of mandatory pseudo-header fields for HTTP/2 #16963)
- Port 5.0 Strictly validate MQTT UTF-8 Encoded Strings (Port 5.0 Strictly validate MQTT UTF-8 Encoded Strings #16967)
- Auto-port 5.0: Stop DateFormatter trailing token from running past the parse end (Auto-port 5.0: Stop DateFormatter trailing token from running past the parse end #16969)
- Auto-port 5.0: IpFilter: Deprecate constructor which use accept by default (Auto-port 5.0: IpFilter: Deprecate constructor which use accept by default #16974)
- Correctly release and fail queued traffic-shaping writes on close (Correctly release and fail queued traffic-shaping writes on close #16959) (Correctly release and fail queued traffic-shaping writes on close (#16959) #16977)
- Auto-port 5.0: Add RFC 10008 QUERY Method support (#16975)
- Auto-port 5.0: Reject control characters at the boundary of the HTTP version token (#16981)
- FlowControlHandler: respect auto-read when toggled while dequeueing (#16949) (#16984)
- Auto-port 5.0: Fix leak in ReferenceCountedOpenSslEngine.addCredential (#16985)
- Auto-port 5.0: Fix typo in AbstractSniHandler Javadoc (#16994)
- Auto-port 5.0: Fix client/server inconsistency in SslCredential support matrix (#16996)
- Auto-port 5.0: Use Ticker in Http2MaxRstFrameListener for testability (#17001)
- Auto-port 5.0: Reset UTF-8 decode state on CR in StompSubframeDecoder (#17002)
- Auto-port 5.0: FastLz: Guard decompression against truncated input (#17004)
- Auto-port 5.0: IdleStateHandler: reset firstWriter/ReaderIdleEvent in resetWriteTimeout/resetReadTimeout (#16987)
- Reconcile
AbstractCoalescingBufferQueue readableBytes when it drain… (#17018)
- Auto-port 5.0: HTTP2: Pass the correct number of arguments when logging goaway (#17016)
- Route synchronous onLookupComplete exceptions via fireExceptionCaught… (#17019)
- Auto-port 5.0: Reject non-token characters in HTTP/2 header names (#17021)
- Fix SelfSignCertificate initialization in tests (#17024)
- Auto-port 5.0: Enable extension of Http3ClientConnectionHandler to support higher-level protocols such as WebTransport. (#17031)
- Support QPACK sensitivity detector for Never Indexed header fields (#17026) (#17038)
- Allow WebSocket extension negotiation to be disabled per response (#17030) (#17036)
- Auto-port 5.0: Implement Adaptive Cumulator (#17033)
- Auto-port 5.0: Update lz4-java to 1.11.1 (#17062)
- Auto-port 5.0: AsciiString.cached(String) should sanitize the provided String (#13749) (#17070)
- ** Fix AsciiString.cached(String) performance regression (#17074) (#17081)**
- Auto-port 5.0: SslHandler: Fix possible buffer leak when an OOME is thrown during allocation (#17077)
- Auto-port 5.0: Avoid leak presence detector in leak profile (#17082)
- Pin github actions to reduce risk (#17043) (#17045)
- IoUring: preserve readPending when rescheduling cancelled reads (#17087) (#17090)
- Auto-port 5.0: Fix AdaptiveByteBuf._setLongLE calling checked setLongLE (#17101)
- Auto-port 5.0: Reject negative maxOrder in PooledByteBufAllocator (#17094)
- Fix OCSP Tests (#17114) (#17116)
- Fix ci-release-5.yml workflow syntax
- Update to latest netty-tcnative release (#17056) (#17120)
- Auto-port 5.0: Use safe decompressor in Lz4FrameDecoder (#17119)
- Auto-port 5.0: Snappy: Guard decoder against invalid chunk lengths (#17109)
- Fix maxAllocation for brotli-encoded content in HttpContentDecompress… (#17125)
- Add HttpContentCompressor constructor with ability to specify desired… (#17123)
- Merge branches from forks (#17063) (#17086)
- Auto-port 5.0: Configure TestLens for the PR builds (#17132)
- Auto-port 5.0: fix(mqtt): drop UNSUBACK reason codes for MQTT 3.x encoding (#17136)
- Auto-port 5.0: Propagate the CI envionment variables through to the docker builds (#17139)
- Auto-port 5.0: Codec-compression: Add decompressor API (#17142)
- Port:5.0:IoUring: Add SO_INQ support for Unix domain (#17144)
- IoUring:disable sendmsg_zc for Unix domain sockets (#17126)
- Auto-port 5.0: Fix silent failures and optimize error short-circuit in multi-threaded tests (#17156)
- Auto-port 5.0: Fix buddy cache evicting chunks with live buffers (#17159)
- Auto-port 5.0: Codec-compression: Add Snappy frame decompressor (#17160)
- Auto-port 5.0: Codec-compression: Add Bzip2Decompressor (#17158)
- Auto-port 5.0: Codec-compression: Add zlib decompressors (#17167)
- Auto-port 5.0: Codec-compression: Add Lz4FrameDecompressor (#17170)
- Auto-port 5.0: Codec-compression: Add LZF decompressor (#17169)
- Auto-port 5.0:
HttpObjectEncoder / DefaultHttp2FrameWriter: fix buffer leak when a Throwable is thrown during header encoding (#17179)
- Auto-port 5.0: Avoid classloader leak via GlobalEventExecutor terminationFuture failure (#17190)
- Auto-port 5.0: Fix direct memory OOM on low-core containers (#17188)
- BrotliEncoder: Prevent duplicate close scheduling (#17175) (#17195)
- Auto-port 5.0: Fix JdkZlibDecompressor losing the tail of highly compressible streams (#17196)
- Auto-port 5.0: Update compress-lzf to 1.2.1 (#17198)
- Do not write WebSocket handshake response to the tail of the pipeline (#17192) (#17201)
- Auto-port 5.0:
HttpServerCodec: do not consume the method queue for 1xx interim responses (#17202)
- Auto-port 5.0: Weakly reference engines from the OpenSSL engine map (#17204)
- Auto-port 5.0: Add
.editorconfig to enforce consistent coding style (#17208)
- Auto-port 5.0: OpenSSL: Allow to obtain used named group via OpenSslSession (#17207)
- Auto-port 5.0: Codec-compression: Add Zstd decompressor (#17168)
- Auto-port 5.0: Update surefire plugin to latest version (#17211)
- Auto-port 5.0: Use X509ExtendedTrustManager in SSLErrorTest (#17225)
- Auto-port 5.0: Validate chunked-must-be-last regardless of HTTP version (#17227)
- Merge changes from forks (#17213) (#17218)
- Auto-port 5.0: Update setup-testlens to v1.9.4 (#17226)
- Auto-port 5.0: Add system property to disable RFC 6761 localhost resolution (#17231)
- Add jextract plugin for code generation (#17084)
- Auto-port 5.0: Use VarHandle JCTools queues without Unsafe (#17239)
- Fix NPE in AbstractNioChannel.removeReadOp() after concurrent deregistration (#17104) (#17248)
- Auto-port 5.0: Fix codec-native-quic published POM packaging (#17250)
- Port: Codec-compression: Add BrotliDecompressor (#17171)
- Skip JextractLocator executability tests on OSes without an execute bit (#17254)
- Inject the license header into generated java files (#17244)
- Release unsent LastHttpContent in HttpChunkedInput (#17240) (#17252)
- Auto-port 5.0: Adjust failsafe plugin version to be in sync with surefire plugin (#17242)
- Auto-port 5.0: QUIC: Delete local references as soon as possible in the JNI layer (#17260)
- Ensure OCSP is also tested with out native implementation (#17220) (#17262)
- HTTP/2: Release compressors after failed headers writes (#17253) (#17264)
- Auto-port 5.0: HTTP/2: Prevent reentrant flush on writability change (#17267)
- Respect max messages per read in LocalServerChannel (#17255) (#17270)
- Auto-port 5.0: Bzip2: Correctly detect overflow during block size bound check (#17272)
- Auto-port 5.0: HTTP: Preserve encoder state after header encoding failures (#17274)
- HTTP/2: Drain queued frames stranded by a writability change during flush (#17279) (#17281)
- Port to 5.0: OSCP: Add clock skew tolerance to OcspServerCertificateValidator (#17277) (#17283)
- Release channel when FixedChannelPool acquire is cancelled (#17287) (#17288)
- Auto-port 5.0: HTTP: Release content encoder after header mutation failure (#17293)
- Auto-port 5.0: Correctly mark org.jctools:jctools-core-jdk11 as non optional (#17295)
- Auto-port 5.0: Update flatten plugin and use flattenDependecyMode direct (#17299)
- Auto-port 5.0: Add a script that can download GHSA vulnerability reports (#17303)
- Auto-port 5.0: FileRegion: Remove outdated JDK upgrade warning (#17312)
- Auto-port 5.0: codec-dns: Fix query OPCODE bit offset and mask (#17315)
- Auto-port 5.0: Install patchelf as part of awslc docker image generation (#17323)
- Auto-port 5.0: QPACK: Correctly encode varint even when remainder is 128 (#17320)
- Auto-port 5.0: POOL: Close active unhealthy channels on release (#17318)
- Auto-port 5.0: Add more logging to CompositeBufferGatheringWriteTest to help diagnose flaky test (#17328)
- Auto-port 5.0: codec-dns: Report and allow setting full 16-bit EDNS(0) flags field (#17331)
- Auto-port 5.0: Protobuf: Update protobuf-javanano to non alpha release (#17334)
- Auto-port 5.0: Port EOF handling test (#17337)
- Fix MQTT 5 properties length decoding for multi-byte Property Length (4.2 branch) (#17105) (#17339)
- Increase timeout in test to address flakyness (#17342)
- Auto-port 5.0: DatagramUnicastIpv6MappedTest should explicit bind to ipv4 address to make test less flaky (#17346)
- Auto-port 5.0: Http2: Cleanup child channel method signatures (#17353)
- Auto-port 5.0: QPACK: Only call firstByteEquals(...) when we actually have readables bytes in decodeLiteralValue(...) (#17360)
- Auto-port 5.0: Update to latest netty-tcnative release (#17362)
- Auto-port 5.0: Update to latest netty-jni-util release (#17366)
- Auto-port 5.0: ByteBufUtil.HexUtil.HEXDUMP_TABLE array length 256*2 is enough (#17368)
- IoUring: Expose tcp_info (#17354) (#17371)
- Port to 5.0: io_uring: do not release write memory that the kernel still owns (#17238) (#17358)
- Auto-port 5.0: Add missing EOF handling test for io_uring (#17375)
- Auto-port 5.0: QUIC: Add missing NULL checks in native code to handle gracefully OOM (#17379)
- Auto-port 5.0: Fix typos in comments/javadoc (#17397)
- Auto-port 5.0: Update to latest netty tcnative version (#17399)
- Auto-port 5.0: Update quiche to 0.29.2 (#17401)
- Auto-port 5.0: perf: Use LinkedHashSet to deduplicate search domains (#17408)
- Auto-port 5.0: Handle non-positive skip lengths in ByteBufInputStream (#17409)
- HTTP/2: Enable header value validation by default
- Verify id-kp-OCSPSigning EKU on delegated OCSP responder certificates
- Validate SMTP command name for CRLF to prevent command injection
- HTTP/1.1: Fix chunk size parsing
- RedisArrayAggregator nested RESP headers multiply patched preallocation limits
- QUIC: Enforce usage of X509ExtendedTrustManager when using endpointIdentificationAlgorithm
- 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/3 CONNECT and Host-controlled :authority
- 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
- Netty HTTP/3 QPACK encoder-stream Insert-With-Literal-Name unbounded length causes memory-exhaustion DoS
- QPACK: QpackUtil.decodePrefixedInteger(...) must enforce limit
- QPACK: Limit the tracking of outstanding sections
- Fix frame desynchronization in the binary memcache decoder
- STOMP codec content-length long-to-int truncation causes infinite decode loop DoS
- HTTP3: Correctly handle ":authority" and "host" headers
- WebSockets: Enforce a limit for the max pipelined requests in WebSocketServerExtensionHandler
- STOMP: Correctly release partial content on handler removal
- OCSP: Correctly handle that
nextUpdate is optional
- HTTP/2: Limit HPACK encoding table size
- HTTP: Limit the maximum number of concurrent pipelined requests
- SPDY: SpdySessionHandler must limit the concurrent streams
- HTTP/1 absolute-form Host mismatch is translated to HTTP/3 :authority, overriding the request-target authority
- MQTT: Strict bounds checking against max message size
- Avoid double promise allocation in SslHandler.wrap() (#17382) (#17413)
- Auto-port 5.0: Socket: Add half-closure tests to SocketHalfClosedTest (#17433)
- Auto-port 5.0: HttpUtil.getCharset() must accept whitespace before the next Content-Type parameter (#17435)
- Auto-port 5.0: codec-dns: Add SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC, ZONEMD records (#17461)
- Auto-port 5.0: transport: Avoid io_uring completion callback allocation (#17467)
- Auto-port 5.0: QUIC: Ensure writable events reflect stream capacity (#17473)
- Auto-port 5.0: OcspServerCertificateValidatorTest: Fix possible leak in test (#17474)
- Use github to download cmake and also remove tar file after unpacking… (#17486)
- Update GitHub Actions pinned to Node.js 20 to Node.js 24 releases (#17489)
- Auto-port 5.0: Fix buffer leak when recvmmsg returns single UDP_GRO batch (#17502)
- Auto-port 5.0: HttpUtil.getMimeType() must not include whitespace before the next Content-Type parameter (#17496)
- Auto-port 5.0: Add regression test for close() cascade reentering flush() (#17504)
- Port: KQueueDatagramChannel: rewrite IPv4-wildcard bind to IPv6-any on dual-stack sockets (#17498) (#17509)
- Port: Fix UDP_GRO segment size is lost when reading with recvmmsg (#17492) (#17507)
- Port: Make CompositeBufferGatheringWriteTest robust against write/close race (#17508) (#17511)
- Port: Guard ChunkedWriteHandler.doFlush() against re-entrant invocation from user code (#17438) (#17503)
- Auto-port 5.0: Add option to ignore MaxDirectMemorySize JVM argument (#17513)
- Auto-port 5.0: Add workflow that will cancel running workflows for merged PRs (#17520)
- Auto-port 5.0: Harden DnsNameResolverTest against transient null localAddress from TestDnsServer (#17521)
- Auto-port 5.0: Fix flaky memory leak detection in OcspServerCertificateValidatorTest (#17526)
- Port: HTTP/2: Remove failed SETTINGS from ACK queue (#17387) (#17535)
- Cache docker build images in ghcr.io to speed up CI (#17539)
- Auto-port 5.0: Fix compilation on latest macOS 27.0 (#17541)
- Make
EventLoopGroup.isCompatible/isIoType side-effect free (#17544) (#17545)
- Auto-port 5.0: Http2ConnectionRoundtripTest: Reduce timing sensitivity to fix CI flakiness (#17551)
- Auto-port 5.0: Fix flaky memory leak detection in OcspServerCertificateValidatorTest (#17546)
- Auto-port 5.0: Reset busy counters after triggering an auto-scale-up decision (#17547)
- Auto-port 5.0: ProtobufVarint32FrameDecoder must wait for more data when the length prefix is incomplete (#17554)
- Auto-port 5.0: QpackEncoder.sectionAcknowledgment must not NPE when dynamic table is disabled (#17555)
- Auto-port 5.0: Guard against out-of-bounds reads when parsing ClientHello SNI extension (#17559)
- Auto-port 5.0: Fix missing readable-bytes check in SmtpResponseDecoder (#17557)
- Auto-port 5.0: Fix IndexOutOfBoundsException from mismatched varint length in Http3FrameCodec (#17560)
- Auto-port 5.0: Fix missing readable-bytes checks in QuicHeaderParser (#17561)
- Auto-port 5.0: Http2: Reserve promised stream before running the request verifier (#17562)
- Auto-port 5.0: Fix HTTP/3 decoding of frames with zero length payloads (#17572)
- Port: POOL: Release Channel when SimpleChannelPool acquire is cancelled (#17569) (#17580)
- Port: Use random generated LocalAddress in tests that use local transport (#17570) (#17581)
- Auto-port 5.0: DnsAddressResolverGroupTest: Use a mock DNS server instead of resolving netty.io over the network (#17576)
- Auto-port 5.0: Reject incomplete PUSH_PROMISE request headers when validateRequiredPseudoHeaders is enabled (#17583)
- Auto-port 5.0: Add regression tests for CANCEL_PUSH/GOAWAY/MAX_PUSH_ID trailing bytes (#17585)
- Auto-port 5.0: Use 2 EventLoops when running our tests by default (#17586)
- Port: Fix missing per-entry clamp in IoUringBufferRing.useBuffer (#17568) (#17584)
- Auto-port 5.0: Fix flaky HttpToHttp2ConnectionHandlerTest.testChunkedRequestWithBodyAndTrailingHeaders (#17592)
- Auto-port 5.0: Http2ConnectionHandler: report at most one stream error for a CompositeStreamException (#17596)
- SingleThreadEventExecutor: fix race between suspend and cancellation … (#17589)
- Auto-port 5.0: Support creating a PropertyKey that is not tied to a specific Http2Connection (#17616)
- Port: Http2MultiplexTransportTest: Fix possible SslContext leak in tests (#17597) (#17598)
- Port: Restore configurable ioRatio-based task scheduling in SingleThreadIoEventLoop (#17481) (#17603)
- Auto-port 5.0: Fix
ByteBuf.setBytes(int, ByteBuffer) when the source is the buffer's own internal NIO buffer (#17624)
- Auto-port 5.0: Reset LengthFieldBasedFrameDecoder state when the frame is shorter than initialBytesToStrip (#17622)
- Auto-port 5.0: Add missing bounds check to
AdaptiveByteBuf.getBytes(...) channel variants (#17630)
- Auto-port 5.0: Fix connection error scope for SETTINGS_INITIAL_WINDOW_SIZE overflow issue (#17641)
- Port: Update lz4-java to 1.12.0 (#17631) (#17639)
- Port: SingleThreadEventExecutor: fix remaining suspend/cancellation race (#17627) (#17649)
- Port: HTTP/2: Fix stream stall when toggling auto-read on a child channel (#17617) (#17650)
- Auto-port 5.0: Update quiche to a new version 0.30.0 (#17651)
- Auto-port 5.0: No need to call
clear() on ByteBuffer after AdaptiveByteBuf.internalNioBuffer() (#17652)
- Auto-port 5.0: Run the Linux test legs on ubuntu-24.04 so io_uring buffer ring tests execute (#17648)
- Auto-port 5.0: Don't strand tasks when trySuspend() races with startThread() (#17654)
- Port: PendingWriteQueue: unlink the write before failing it in removeAndFail (#17657) (#17659)
- Port: Don't lose HashedWheelTimer timeouts that race with stop() (#17610) (#17661)
- Port: LocalChannel: complete connect() when the accepted channel dies before registration (#17656) (#17667)
- Port: Don't corrupt the pipeline when a handler context is removed tw… (#17672)
- Port: Don't leak FixedChannelPool slots on unrelated IllegalArgumentException (#17609) (#17669)
- Port: Don't leak queued writes in ChunkedWriteHandler on removal or cancel (#17663) (#17680)
- Auto-port 5.0: Honour the needle's reader index in ByteBufUtil.indexOf(ByteBuf, ByteBuf) (#17686)
- Port: Close idle outbound HTTP/2 child channels when the parent closes (#17679) (#17696)
- Port: Use LocalIoHandler instead of DefaultEventLoop for LocalChannel tests in codec-http2 (#17697) (#17709)
- Port: Only fail in ZlibDecoder when the decompression buffer is full (#17698) (#17704)
- Auto-port 5.0: Add script that allows to check if a user has signed the icla (#17718)
- Port 5.0: Arm force-close timeout when an inbound CLOSE frame is echoed (#17574) (#17712)
- Auto-port 5.0: Handle ed25519 and ed448 names in SignatureAlgorithmConverter (#17729)
- Auto-port 5.0: Complete HTTP/2 graceful close when the connection closes the last stream (#17719)
- Auto-port 5.0: MqttDecoder accepts malformed MQTT 5 property sections and reclassifies payload bytes as properties (#17730)
- Auto-port 5.0: Fail ChunkedNioFile instead of spinning when the file is shorter than requested (#17735)
- Only build and test the affected modules when validating PRs (#17736) (#17745)
- Port 5.0: Validate bzip2 Huffman table selector index before use (#17705) (#17739)
- Auto-port 5.0: Reset the permessage-deflate compressor after an empty final fragment (#17740)
- Port 5.0: Fix racy DnsNameResolverTest.testNegativeTtl lifecycle observer checks (#17737) (#17746)
- Auto-port 5.0: Fix retainedSlice() of non-retained pooled derived buffers (#17760)
- Auto-port 5.0: Build using powershell on Windows (#17769)
- Auto-port 5.0: Do not let a negatively cached search domain shadow a positive one (#17802)
- Port 5.0: Fix empty writev submissions after sendmsg_zc- #17782 (#17803)
- Port 5.0: Reject Redis lines that start with LF (#17793) (#17807)
- Port 5.0: Choose server key types from client's signature algorithms for TLS 1.3 (#17764) (#17808)
- LocalChannel: Deliver data written by the peer before it closed (#17814)
- Auto-port 5.0: Validate padding of HEADERS frames without priority (#17818)
- Auto-port 5.0: Respect SETTINGS_QPACK_BLOCKED_STREAMS for unacknowledged QPACK entries (#17826)
- Auto-port 5.0: Don't spin in SslHandler.wrapMultiple(...) when the engine consumes nothing (#17821)
- Auto-port 5.0: Optimize redundant bounds checking in ByteBuf.setBytes (#17825)
- Auto-port 5.0: Preserve invalid SNI names in
ReferenceCountedOpenSslEngine (#17823)
- Port 5.0: Release the DNS response when a query future loses a cancel race (#17475) (#17829)
- Auto-port 5.0: Lazily instantiate VarHandle JCTools queues via holder class (#17830)
- Auto-port 5.0: Throw UnsupportedOperationException from AdaptiveByteBuf.memoryAddress() without an address (#17844)
- Auto-port 5.0: Fix HpackDynamicTable losing entries when filled to capacity (#17848)
- Port: Make AdaptiveByteBuf.memoryAddress() faster (#17767) (#17852)
- Auto-port 5.0: Validate bzip2 Huffman code lengths before building decode tables (#17853)
- Auto-port 5.0: Validate header values on DefaultHeaders.copy(), bulk add, entry setValue and ReadOnlyHttpHeaders (#17856)
- Auto-port 5.0: Throw DecompressionException on JdkZlib preset dictionary mismatch (#17857)
- Auto-port 5.0: Reject HTTP version numbers that overflow int (#17858)
- Auto-port 5.0: HAProxyMessage: validate the length of all TLV types (#17847)
- Port 5.0: Apply certificate list size floor (#17674) (#17862)
- Port 5.0: HAProxyMessage: decode TLVs with an empty value at the end of the header (#17835) (#17874)
- Port 5.0: HAProxyMessageDecoder: fix v2 header framing with a non-zero reader index (#17832) (#17884)
- Auto-port 5.0: Reject invalid content-length in PUSH_PROMISE with a stream error (#17876)
- Auto-port 5.0: Honor maxAllocation for brotli in DelegatingDecompressorFrameListener (#17883)
- Port 5.0: HAProxyMessageEncoder: encode v1 PROXY UNKNOWN headers (#17837) (#17886)
- Port 5.0: Decouple QUIC token validation from ODCID derivation (#17035) (#17887)
- Auto-port 5.0: Skip JNDI nameserver lookup on IBM i (#17891)
- Auto-port 5.0: Avoid allocating NIO buffer views in AdaptiveByteBuf.setBytes(int, ByteBuf, int, int) (#17890)
- Fix NPE in Http2FrameCodec when h2c upgrade fails (#17871) (#17902)
- Auto-port 5.0: Don't size ZstdDecoder output buffers from the frame content size (#17901)
- Auto-port 5.0: Allow adaptive allocator magazine cleanup in BlockHound (#17903)
- Auto-port 5.0: Reset the h2c upgrade stream if the request can not be converted (#17894)
- Auto-port 5.0: GroupsConverter: fix the x25519mlkem768 group name (#17906)
- Fix quadratic scanning in DelimiterBasedFrameDecoder for non-line delimiters
- SpdyHttpDecoder: bound cumulative HEADERS frame size per stream
- Decoded nested HAProxy SSL TLVs re-encode with an inconsistent PROXY v2 length, allowing downstream TLV injection/desync
- Release QPACK blocked stream slot when a blocked stream is abandoned
- HTTP1: Stricter multipart per-part Content-Type validation
- CorsHandler omits Vary: Origin for the null-origin branch, unlike every other origin-matching path
- HTTP/2: Limit buffered memory for table size changes
- Correctly handle multiple Content-Length
- Netty OcspServerCertificateValidator still delivers buffered data from a revoked peer after OCSP fails
- Fail closed on zero-length handshake records in SslClientHelloHandler
- Fix quadratic CPU usage in XmlFrameDecoder when an element is never balanced
- Fix sign-extension bug in SocksInitRequestDecoder NMETHODS field
- Fix wrong nextBid computation in IoUringBufferRing for RECVSEND_BUNDLE
- Bound domain-name decode buffer to avoid quadratic allocation
- Fix IP allow-list bypass from ruleType-blind dedup in IpSubnetFilter
- Fix io_uring domain socket fd leak on multi-fd SCM_RIGHTS messages
- Auto-port 5.0: Don't count insertions twice in QPACK Insert Count Increments (#17907)
- Auto-port 5.0: IpSubnetFilter: Add tests for overlapping rules (#17888)
- Port 5.0: Keep reading a closed QUIC stream until the end of its input (#17755) (#17839)
- Port 5.0: Use assertInstanceOf/assertThrows instead of assertTrue/fail idioms in tests (#17910)
- Auto-port 5.0: Don't lose frames when a delimiter is split across reads (#17911)
- Auto-port 5.0: Improve OcspServerCertificateValidatorTest.connectUsingHttpAndValidateCertificateUsingOcspTest() (#17915)
- Auto-port 5.0: Fix truncated output in Brotli decoders (#17919)
- Port 5.0: Read SOCKS5 length octets unsigned in the legacy socks decoders (#17912) (#17921)
- Port 5.0: Don't lose frames when a delimiter is split across reads (#17911) (#17917)
- Limit the number of queued tasks in NioEventLoopTest.testTaskRemovalOnShutdownThrowsNoUnsupportedOperationException (#17924)
- Don't use the network in OcspClientTest.simpleOcspQueryTest (#17908) (#17920)
- Don't release pending outbound bytes twice when a handler is removed while handling an event (#17925)
- Auto-port 5.0: Reject truncated QPACK prefixed integers in field section decode (#17922)
- Close a LocalChannel when the connection is refused (#17926)
- chore: Make HTTP/2 frameType a short (#16387)
- Auto-port 5.0: Wrap trailing ';' in Content-Disposition as ErrorDataDecoderException (#17928)
- Auto-port 5.0: Fail pending writes of ProxyHandler when it is removed (#17706)
- io_uring: Don't let msgHdrMemoryArray() clear the iovecs of a pending zero-copy write
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
)
Auto-port of #17154 to 5.0
Cherry-picked commit: 34bfcc7
---
Motivation:
The shared ConcurrentSkipListChunkCache eviction policy picked the chunk
with the lowest refCnt when the cache exceeded CHUNK_REUSE_QUEUE. Since
chunks enter the cache with refCnt = 1 + N (N live buffers), evicting
them creates zombie chunks: out of the cache, backing buffer still alive
until all N buffers release. This caused 16 GB RSS on the AG benchmark.
Modification:
Only evict chunks where refCnt == 1 (no live buffers — just the base
construction reference). If no idle chunk exists, let the cache grow
past the cap. markToDeallocate on an idle chunk decrements refCnt to 0,
triggering deallocate which frees the backing buffer cleanly.
Result:
Less memory churn under allocation pressure still allowing it to shrink
on subsequence cache requests
Co-authored-by: Francesco Nigro <[email protected]>
Auto-port of #17153 to 5.0
Cherry-picked commit: a3f0fca
---
Motivation:
The decompressor API migration tracked in #16743 is being split into
small, reviewable PRs. Snappy is one of the remaining per-format
decompressor implementations.
Modification:
- Add `SnappyFrameDecompressor` based on the existing Snappy frame
decoder behavior.
- Add `SnappyDecompressorTest` using the shared decompressor contract
test suite.
- Cover Snappy-specific malformed frame cases for too-short chunks and
truncated input at EOF.
Result:
Snappy can be decompressed through the new `Decompressor` API while
preserving frame-decoder validation behavior.
Verification:
- `JAVA_HOME=/usr/lib/jvm/java-21-openjdk
MAVEN_USER_HOME=/tmp/opencode/m2-compress-snappy ./mvnw -pl
codec-compression -am -Dtest=SnappyDecompressorTest
-Dsurefire.failIfNoSpecifiedTests=false test`
- `JAVA_HOME=/usr/lib/jvm/java-21-openjdk
MAVEN_USER_HOME=/tmp/opencode/m2-compress-snappy ./mvnw -pl
codec-compression -am verify`
Part of #16743.
Co-authored-by: Jonas Konrad <[email protected]>
Co-authored-by: multicode <[email protected]>
Co-authored-by: Chris Vest <[email protected]>
Auto-port of #17145 to 5.0
Cherry-picked commit: 5b9ad3a
---
Motivation:
The decompressor migration tracked in #16743 is being split out of
#15667 into smaller, independently reviewable pieces. The core
`Decompressor` API and the first implementation landed in #16745, and
bzip2 is one of the remaining per-format decompressor implementations.
Modification:
- Add `Bzip2Decompressor`, adapted from the existing `Bzip2Decoder`
state machine to the new pull-style `Decompressor` API.
- Add `Bzip2DecompressorTest`, using the shared
`AbstractDecompressorTest` contract with `Bzip2Encoder`.
Result:
Bzip2 can now be decompressed through the new `Decompressor` API.
Verified with:
- `./mvnw -pl codec-compression -am verify`
Part of #16743.
Co-authored-by: Jonas Konrad <[email protected]>
Co-authored-by: multicode <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Auto-port of #17155 to 5.0
Cherry-picked commit: 341a5f7
---
Motivation:
The new decompressor API work in #15667 is being split into smaller,
independently reviewable changes as tracked by #16743. The core
decompressor API has already landed in #16745; this PR extracts the JDK
zlib-specific portion.
Modification:
* Add a JDK-backed zlib decompressor exposed through
`JdkZlibDecompressor.builder()`.
* Support ZLIB, GZIP, raw-deflate, and ZLIB-or-raw auto-detection,
preset dictionaries, bounded output allocation, and concatenated GZIP
members.
* Add focused decompressor contract and regression tests.
* Port #16951's GZIP FEXTRA handling and concatenated-member regression
coverage.
* Harden EOF/truncation handling, output-buffer ownership, inflater
cleanup, allocation validation, and GZIP header validation.
* Cover direct-buffer input across partial output consumption.
The new pull API intentionally uses only the JDK implementation. The
existing `JZlibDecoder` selection behavior in the established
`ZlibCodecFactory.newZlibDecoder(...)` APIs remains unchanged.
Result:
ZLIB, GZIP, and raw-deflate streams can be decompressed through the new
pull-based `Decompressor` API. The implementation also supports wrapper
auto-detection and concatenated GZIP streams without adding a second
JZlib-backed pull implementation or changing `ZlibCodecFactory`.
Performance:
A temporary JMH comparison of one-shot construction and ZLIB
decompression on OpenJDK 21.0.11 found the JDK implementation faster for
the tested payloads:
| Uncompressed size | JDK | JZlib | JDK advantage |
|---:|---:|---:|---:|
| 1 KiB | 187,927 ops/s | 76,748 ops/s | 2.45x |
| 150 KiB | ~5,291-5,353 ops/s | ~1,686-1,711 ops/s | ~3.1x |
| 1 MiB | 916.7 ops/s | 536.2 ops/s | 1.71x |
The benchmark used one thread, two forks, 3 x 500 ms warmups, and 5 x
500 ms measurements per fork. The 150 KiB cases covered heap/direct
input and 8 KiB/1 MiB maximum allocations. These results are directional
rather than a universal performance claim, but showed no performance
reason to retain the JZlib variant.
Verification:
* `./mvnw -pl codec-compression test`: 411 tests passed with no failures
or errors.
* `JdkZlibDecompressorTest`: 33 focused cases passed.
* Checkstyle, Java compilation, module generation, and packaging
completed successfully.
Part of #16743.
Co-authored-by: Jonas Konrad <[email protected]>
Co-authored-by: multicode <[email protected]>
Auto-port of #17148 to 5.0
Cherry-picked commit: 163a33e
---
Motivation:
The decompressor API migration tracked by #16743 calls for the remaining
per-format implementations from #15667 to be split into small,
independently reviewable pull requests. LZ4 is one of the remaining
formats.
Modification:
Add `Lz4FrameDecompressor` using the new `Decompressor` API and builder
pattern. Reject truncated streams, limit compressed input to the
declared block, and validate the actual decompressed size before
publishing output. Add a configurable per-block decompressed length
limit that defaults to 256 KiB, with `0` allowing the LZ4 format maximum
of 32 MiB. Add shared contract coverage and LZ4-specific malformed-input
and limit tests.
Result:
LZ4 frame decompression is available through the new API. `./mvnw -pl
codec-compression -am verify` passes with 394 codec-compression tests,
including checkstyle and XML formatting checks.
Part of #16743.
Co-authored-by: Jonas Konrad <[email protected]>
Co-authored-by: multicode <[email protected]>
Auto-port of #17147 to 5.0
Cherry-picked commit: 5eb999b
---
Motivation:
The decompressor API migration tracked by #16743 is being split into
small per-format PRs. LZF still needs a standalone implementation for
the new pull-based `Decompressor` API.
Modification:
Add `LzfDecompressor`, extracted from the LZF decoder logic in #15667
and adapted to `InputBufferingDecompressor` / `DefensiveDecompressor`.
Add `LzfDecompressorTest` using the shared `AbstractDecompressorTest`
harness.
This intentionally does not add the backpressure handler tests from
#15667 because that handler infrastructure is tracked separately.
Result:
LZF can be decompressed through the new `Decompressor` API.
Verification:
- `./mvnw -Dmaven.user.home=/tmp/opencode/m2-wrapper -pl
codec-compression -am -Dtest=LzfDecompressorTest
-Dsurefire.failIfNoSpecifiedTests=false test`
- `./mvnw -Dmaven.user.home=/tmp/opencode/m2-wrapper -pl
codec-compression -am verify`
Related to #16743.
Co-authored-by: Jonas Konrad <[email protected]>
Co-authored-by: multicode <[email protected]>
…uffer leak when a `Throwable` is thrown during header encoding (#17179)
…tionFuture failure (#17190)
Auto-port of #17140 to 5.0
Cherry-picked commit: cee0005
---
### Motivation
`GlobalEventExecutor.INSTANCE` is a static singleton that lives for the
lifetime of the classloader that loaded it. Its `terminationFuture`
holds a `FailedFuture` whose cause was a plain
`UnsupportedOperationException`.
Although `ThrowableUtil.unknownStackTrace(...)` replaces the *visible*
stack trace with a single synthetic frame, the exception's internal
(native) `backtrace` field is still populated at construction time by
`fillInStackTrace()`. That backtrace pins the classloader of whatever
thread happened to trigger the lazy initialization of `INSTANCE` (e.g. a
web application's `WebAppClassLoader`), making all of that classloader's
classes immortal/undeployable.
This is a follow-up to the leak fixed in #14622.
Fixes #17128
### Modification
Introduce a private `StacklessUnsupportedOperationException` whose
`fillInStackTrace()` is a no-op, so the native backtrace is never
captured, and use it for the `terminationFuture` failure. This mirrors
the stackless-exception pattern already used throughout Netty.
### Result
The `terminationFuture` failure no longer retains a native backtrace, so
it can no longer pin the triggering thread's classloader.
**Verification done:** Added
`GlobalEventExecutorTest#testTerminationFutureFailureDoesNotFillInStackTrace`,
which asserts that after `fillInStackTrace()` the cause's stack trace
stays the single synthetic `terminationFuture` frame. It fails before
the change (backtrace repopulates to 76 native frames) and passes after.
Ran `mvn -pl common test -Dtest=GlobalEventExecutorTest` (6/6 pass) and
`checkstyle:check@check-style` (clean) on JDK 25.
Co-authored-by: seonwoojung <[email protected]>
Auto-port of #17166 to 5.0
Cherry-picked commit: 6b02a3e
---
Motivation:
PR #16766 introduced SHARED_CACHE_CAPACITY = max(128, CHUNK_REUSE_QUEUE
* 2) to prevent chunk churn. On 1-core containers where
CHUNK_REUSE_QUEUE is 2, the 128-slot floor allows each of the 16 size
classes to retain up to 128 chunks of ~128 KB, totalling 256 MB of
direct memory in caches alone.
On JDK 21 without -Dio.netty.tryReflectionSetAccessible=true, Netty
allocates direct chunks via ByteBuffer.allocateDirect(), tracked against
MaxDirectMemorySize. The cache capacity can exhaust the entire direct
memory budget, causing OOM as reported in #17107.
Additionally, IS_LOW_MEM (triggered when Runtime.maxMemory() <= 512 MB)
uses heap budget as a proxy for native memory availability, which is
wrong for off-heap workloads. There is no override for users who know
their environment better than the heuristic.
Modification:
- Reduce the SHARED_CACHE_CAPACITY floor from 128 to 16.
- Add io.netty.allocator.lowMemory system property to override
IS_LOW_MEM auto-detection, following the precedent of the existing
disableThreadLocalMagazinesOnLowMemory property.
Result:
Worst-case cache retention drops from 256 MB to 32 MB on 1-4 core
machines. The CHUNK_REUSE_QUEUE * 2 formula still governs on 8+ cores
(128 on 32 cores — same as before). The floor of 16 is 8x the pre-#16766
capacity on 1-core, so the original chunk churn problem does not
regress. Users can force IS_LOW_MEM on or off via
-Dio.netty.allocator.lowMemory.
Co-authored-by: Francesco Nigro <[email protected]>
Co-authored-by: Chris Vest <[email protected]>
Motivation:
`BrotliEncoderChannel.close()` closes its destination, which re-enters
`BrotliEncoder.Writer.close()`. The re-entrant call schedules another
finish task before `isClosed` is set. If the first finish fails, the
second task can retry with an already-failed close promise.
Modification:
Track whether writer close has already been initiated and ignore
subsequent close calls before scheduling another finish task.
Result:
Brotli encoder close is idempotent while a finish is pending, and
exceptional finalization no longer retries with an already-completed
promise.
Co-authored-by: multicode <[email protected]>
Co-authored-by: Jonas Konrad <[email protected]>
Co-authored-by: multicode <[email protected]>
…ressible streams (#17196)
Auto-port of #17191 to 5.0
Cherry-picked commit: 7681aff
---
### Motivation
`JdkZlibDecompressor#processOutput` sizes every output buffer as
`inflater.getRemaining() << 1`. The number of remaining input bytes is
only a hint: the inflater
may still hold decoded data that did not fit into the previous output
buffer, and by then it may
have pulled the last input bytes into its internal state, so
`getRemaining()` is `0` and the
proposed buffer has zero capacity. `inflate(...)` cannot make progress
with it, and because
`status()` maps `inflater.needsInput()` straight to `NEED_INPUT`, the
caller is asked for more
input instead of draining the pending output. At the end of the stream
`endOfInput()` then fails
with `Compressed stream ended before the end-of-stream marker`, even
though the stream was
complete and valid.
Measured with 100000 bytes of `'a'` deflated raw (115 bytes, ratio
~870:1), driving the
decompressor exactly as its own tests do:
```
new JdkZlibDecompressor (ZlibWrapper.NONE): 99848 of 100000 bytes, then
DecompressionException: Compressed stream ended before the end-of-stream marker
legacy JdkZlibDecoder (ZlibWrapper.NONE): 100000 bytes
java.util.zip.Inflater : 100000 bytes
```
Replaying the same buffer sizing against a bare `Inflater` shows the
state that is mis-read:
```
iteration 2148: inflate returned 0 cap=0 getRemaining=0 needsInput=true finished=false producedSoFar=99848
drained with a 64K buffer afterwards: 152B, finished=true
```
So the tail is inside the `Inflater` the whole time and only the buffer
sizing keeps it there.
The legacy `JdkZlibDecoder` is not affected because it inflates into a
single buffer that it keeps
expanding, so `inflate(...)` always has room. `ZlibWrapper.ZLIB` and
`ZlibWrapper.GZIP` hide the
problem as well, because their trailer keeps `getRemaining()` above zero
until the inflater is
finished; raw deflate has no trailer, which is what `permessage-deflate`
and
`Content-Encoding: deflate` payloads look like.
### Modification
- Never propose a zero-sized output buffer: `processOutput` floors the
proposed capacity at
`MIN_OUTPUT_BUFFER_SIZE` (512 bytes). `maxAllocation` still caps it
exactly as before, so a
configured limit keeps its meaning.
- Remember whether the last `inflate(...)` filled the output buffer
completely and, if it did,
report `NEED_OUTPUT` from `status()` so the pending output is drained
before more input is
requested. `needsInput()` only says that all input bytes were consumed,
not that all output was
produced. The flag is cleared once a call does not fill the buffer or
the inflater is finished,
so this cannot loop.
### Result
A valid deflate stream is fully decompressed regardless of its
compression ratio.
**Verification done:** added
`JdkZlibDecompressorTest#testHighlyCompressibleStreamIsFullyDecompressed`.
It runs for all three wrappers, cross-checks the compressed input with
the JDK inflater first so a
failure cannot be blamed on the fixture, and then asserts the
decompressor returns the same bytes.
It fails on unpatched `4.2` for `ZlibWrapper.NONE` with the exception
above and passes with this
change. `./mvnw -pl codec-compression clean install` is green on JDK 21
(499 tests, checkstyle,
forbidden-apis and revapi included).
I also ran the other `Decompressor` implementations through the same
battery (round trip at chunk
sizes 1..64K, `addInput` ownership on malformed input, `close()`
idempotency, concatenated frames,
and hand-crafted gzip headers covering every `FLG` combination against
`GZIPInputStream`) and found
no other divergence, so this change is limited to the zlib one.
Co-authored-by: renechoi <[email protected]>
Auto-port of #17194 to 5.0
Cherry-picked commit: 035d76e
---
Motivation:
Update Netty's optional LZF compression dependency to the latest Maven
Central release.
Modification:
Bump `com.ning:compress-lzf` from `1.2.0` to `1.2.1` in root dependency
management.
Result:
The `codec-compression` LZF tests pass locally:
```bash
./mvnw -B -ntp -Dmaven.repo.local=/tmp/opencode/netty-maven-home/repository \
-pl codec-compression -am test \
-Dtest=LzfEncoderTest,LzfDecoderTest,LzfIntegrationTest,LengthAwareLzfIntegrationTest \
-Dsurefire.failIfNoSpecifiedTests=false
```
Tests run: 36, Failures: 0, Errors: 0, Skipped: 0
Co-authored-by: Jonas Konrad <[email protected]>
Co-authored-by: multicode <[email protected]>
…#17192) (#17201)
`WebSocketServerHandshaker` writes the 101 Switching Protocols response
via
`Channel.writeAndFlush()`. The write starts at the tail of the pipeline,
so every
`ChannelOutboundHandler` placed after `WebSocketServerProtocolHandler`
sees the
raw HTTP upgrade response, even though handlers there operate on
WebSocket
frames. In #17141 a handler that queues outbound messages until
`HandshakeComplete` captured the response itself, so the handshake could
never
complete.
`WebSocketServerHandshaker` already provides `ChannelHandlerContext`
overloads
for `close()` for the same reason; this change applies the same pattern
to the
handshake response.
- Add `handshake(ChannelHandlerContext, ...)` overloads to
`WebSocketServerHandshaker`, following the existing
`close(ChannelHandlerContext, ...)` overloads in the same class, and
route both
variants through a shared `handshake0(ChannelOutboundInvoker, Channel,
...)`.
- `WebSocketServerProtocolHandshakeHandler` now passes its ctx, so the
response
is written from the handshake handler's former position.
- Update the benchmarkserver example to use the new overload.
- Tests: a regression test asserts a handler behind the protocol handler
observes no write during the handshake, for both full and non-full
upgrade
requests. Existing tests that captured the response behind the protocol
handler now read it via `readOutbound()`. Four `handshake(null, ...)`
calls
needed a `(Channel)` cast to stay unambiguous.
Notes:
- With the documented pipeline ordering (extension/compression handler
before
the protocol handler, as in `WebSocketServerInitializer`) nothing
changes: the
write still traverses `WebSocketServerExtensionHandler` and the HTTP
encoder.
Only handlers behind the protocol handler stop seeing the 101, which is
the
bug being fixed.
- The tail-write behavior of the `Channel` overloads is unchanged and
still
covered by `WebSocketServerHandshaker00/08/13Test` and
`WebSocketServerHandshakerTest`.
Fixes #17141.
---------
Co-authored-by: el-psy-kongroo-d
<[email protected]>
Co-authored-by: Norman Maurer <[email protected]>
Co-authored-by: el-psy-kongroo-d <[email protected]>
Co-authored-by: el-psy-kongroo-d <[email protected]>
… 1xx interim responses (#17202)
Auto-port of #17182 to 5.0
Cherry-picked commit: ae41417
---
### Motivation
Resolves #17181.
#12918 stopped 1xx interim responses from consuming a queue entry in
`HttpClientCodec` and `HttpContentEncoder`, but `HttpServerCodec` was
left out.
`isContentAlwaysEmpty(HttpResponse)` in `HttpServerCodec` polls the
request method queue for every response it encodes:
```java
@OverRide
protected boolean isContentAlwaysEmpty(HttpResponse msg) {
methodFlag = pollMethod();
return methodFlag == METHOD_FLAG_HEAD || super.isContentAlwaysEmpty(msg);
}
```
It is invoked for every `HttpResponse` on both encoder paths —
`encodeFullHttpMessage()` and `encodeInitHttpMessage()` in
`HttpObjectEncoder`. An interim response is not the final response to
the queued request, so consuming an entry shifts the queue by one and
the wrong method gets paired with the final response.
Both failure modes are reachable from first-party handlers:
`HttpServerExpectContinueHandler` and `HttpObjectAggregator` write `100
Continue` through this encoder.
### Modification
Skip `pollMethod()` when the response status class is `INFORMATIONAL`
and delegate to the super method, mirroring the guard already present in
`isContentAlwaysEmpty(HttpMessage)` in `HttpClientCodec`.
`methodFlag` is intentionally left untouched on the interim path.
`sanitizeHeadersBeforeEncode()` reads it for the CONNECT check, but that
branch also requires `codeClass() == SUCCESS`, which a 1xx response
never satisfies.
### Result
Interim responses no longer shift the method queue, so HEAD and CONNECT
are paired with their own final response.
Encoder output for the two broken cases, measured with the tests added
here:
| scenario | before | after |
|---|---|---|
| `HEAD /a`, then `103`, then final `200 OK` with content | `HTTP/1.1
200 OK\r\ncontent-length: 4\r\n\r\nbody` | `HTTP/1.1 200
OK\r\ncontent-length: 4\r\n\r\n` |
| pipelined `GET /a` + `HEAD /b`, then `103`, then `/a`'s `200 OK` with
content | `HTTP/1.1 200 OK\r\ncontent-length: 6\r\n\r\n` | `HTTP/1.1 200
OK\r\ncontent-length: 6\r\n\r\nbody-a` |
| `HEAD /` with `Upgrade`, then `101` | `HTTP/1.1 101 Switching
Protocols\r\nconnection: upgrade\r\nupgrade: websocket\r\n\r\n` |
unchanged |
The first row is a HEAD response carrying a body, which per RFC 9110
section 9.3.2 must never happen — on a keep-alive connection the peer
reads those bytes as the start of the next response. The second is a
non-HEAD response losing its body while keeping `Content-Length`,
leaving the peer waiting for six bytes that never arrive.
Sequential request/response traffic recovers on its own, since an empty
queue falls back to `METHOD_FLAG_OTHER`. Corruption needs either a 1xx
preceding a HEAD response, or pipelining combined with a 1xx.
101 is included in `INFORMATIONAL` and is therefore covered by the
guard, with no change on the wire. After switching protocols the codec
is removed from the pipeline — by `upgradeFrom()` in `HttpServerCodec`
for h2c, and by `WebSocketServerHandshaker` for WebSocket — so the entry
left behind is discarded together with the handler. The third row above
pins this.
This also corrects CONNECT: previously a 1xx could consume the CONNECT
entry, so the final 2xx response missed the `Transfer-Encoding`
stripping in `sanitizeHeadersBeforeEncode()`.
`codec-http` passes in full: 8973 tests, 0 failures.
---------
Co-authored-by: HwangRock <[email protected]>
Co-authored-by: Norman Maurer <[email protected]>
Co-authored-by: Chris Vest <[email protected]>
…17204)
Auto-port of #17199 to 5.0
Cherry-picked commit: 26255b1
---
Motivation:
ReferenceCountedOpenSslContext strongly references every engine through
its `engines` map (the SSL* -> engine reverse lookup used by the OpenSSL
callbacks). As an SslContext is typically a long-lived singleton, a
leaked engine stays reachable for the context's whole lifetime, so
OpenSslEngine.finalize() - the backstop meant for that case - never runs
and its native memory is freed only when the context is destroyed.
Modification:
Reintroduce OpenSslEngineMap as a class holding the engines as
WeakReferences. A live engine is always strongly reachable via its
SslHandler, so only a leaked one becomes collectable. The abstraction
removed in #15444 was a strong wrapper that rightly added no value; weak
values give it a reason to exist.
Add OpenSslEngineTest.leakedEngineIsReclaimedWhileContextAlive.
Result:
A leaked OPENSSL engine is reclaimed per-engine independently of its
context. For OPENSSL_REFCNT a leaked engine now also becomes
collectable, so the ResourceLeakDetector reports it instead of it being
pinned silently.
Co-authored-by: Bryce Anderson <[email protected]>
…#17208)
Auto-port of #17052 to 5.0
Cherry-picked commit: a96226c
---
## Motivation
The Netty project has well-established coding conventions defined in its
checkstyle configuration, but these are only enforced at build time and
require specific tooling setup. Without an `.editorconfig` file, each
IDE and editor must be configured individually to match the project's
style, leading to inconsistent formatting, unnecessary whitespace
changes in commits, and friction for contributors.
`.editorconfig` is auto-detected by IntelliJ IDEA, VS Code, and many
other editors — no plugin or configuration required. This lowers the
barrier for new contributors and ensures consistent style out of the
box.
## Modification
Added `.editorconfig` at the project root with settings derived from the
project's existing conventions, verified against actual source files and
the canonical checkstyle configuration at
[`netty-build/common/src/main/resources/io/netty/checkstyle.xml`](https://github.com/netty/netty-build/blob/master/common/src/main/resources/io/netty/checkstyle.xml)
— `LineLength = 120`, `FileTabCharacter` (tab prohibition),
`NewlineCheck` (LF), `NewlineAtEndOfFile`, trailing whitespace
prohibition, UTF-8 charset:
| File type | Indent | Details |
|-----------|--------|---------|
| `*.java` | 4 spaces | 120-char max line width |
| `*.c`, `*.h` | 4 spaces | Native transport code |
| `*.xml` | 4 spaces | POM and config files |
| `*.{yml,yaml,json,js,css}` | 2 spaces | Build configs, web assets |
| `*.{md,txt}` | 2 spaces | Documentation |
| `*.properties` | 2 spaces | Maven wrapper, native-image config |
| `*.sh` | 4 spaces | Build and CI scripts |
| `Makefile` | tab | Required by GNU make |
Global defaults for all files: UTF-8 encoding, LF line endings, final
newline at end of file, no trailing whitespace.
## Result
This is a formatting-only convention change with no behavioral impact.
It ensures every editor shows code with the correct style automatically
and provides the necessary foundation for automatic code formatters to
enforce consistent style in CI pipelines.
Addresses
[#15642](#15642).
Co-authored-by: Vasily Pelikh <[email protected]>
Co-authored-by: Norman Maurer <[email protected]>
…ession (#17207)
Auto-port of #17058 to 5.0
Cherry-picked commit: 14a4e6a
---
Motivation:
It is useful to know which named group was used (for example to detect
if PQC was used).
Modifications:
- Add new method to OpenSslSession to allow gathering the information
- Add unit test
- Update tcnative so we can access the used named group
Result:
Be able to detect which named group was used
Co-authored-by: Norman Maurer <[email protected]>
Co-authored-by: Chris Vest <[email protected]>
Auto-port of #17152 to 5.0
Cherry-picked commit: a4e5641
---
Motivation:
The decompressor API migration tracked in #16743 is being split out from
#15667 into smaller, reviewable pieces. This adds the Zstd decompressor
slice on top of the core decompressor API that is already present,
including the ZstdDecoder window-memory guard added in #16850.
Modification:
Add `ZstdDecompressor`, backed by zstd-jni `ZstdInputStreamNoFinalizer`,
and add the matching `AbstractDecompressorTest` coverage using
`ZstdEncoder`.
The decompressor builder exposes `maxWindowLog(int)` and applies it
through `ZstdInputStreamNoFinalizer.setLongMax(...)` so frames declaring
oversized windows are rejected before zstd allocates excessive native
memory. `takeOutput()` also uses the shared compression forward-size as
its per-call output chunk size.
Result:
Zstd now has a decompressor implementation for the new API with focused
contract coverage and bounded zstd native window memory by default.
Verification:
- `./mvnw -pl codec-compression -am -DskipRemoteStaging=true
-Dcheckstyle.skip=false -DskipTests=false -Dtest=ZstdDecompressorTest
-Dsurefire.failIfNoSpecifiedTests=false test`
- `./mvnw -pl codec-compression -am -DskipRemoteStaging=true
-Dcheckstyle.skip=false -DskipTests=false verify`
Part of #16743.
Co-authored-by: Jonas Konrad <[email protected]>
Co-authored-by: multicode <[email protected]>
Auto-port of #17210 to 5.0
Cherry-picked commit: 36fbf57
---
Motivation:
We used an outdated version
Modifications:
Update to latest release
Result:
Use latest release
Co-authored-by: Norman Maurer <[email protected]>
Auto-port of #17221 to 5.0
Cherry-picked commit: 4bfd89d
---
Motivation:
When sun.misc.Unsafe is not usable we can't wrap TrustManager with the
JDK included X509ExtendedTrustManager implementation that does extra
validations. Because of this we fail to setup the SslContext.
Modifications:
Explicit use X509ExtendedTrustManager in test
Result:
Test passes again when sun.misc.Unsafe is not usable
Co-authored-by: Norman Maurer <[email protected]>
…on (#17227)
Auto-port of #17055 to 5.0
Cherry-picked commit: fcf427d
---
### Motivation
RFC 9112 §6.1 requires that when a message uses Transfer-Encoding,
"chunked" must be the last encoding listed — a value like `chunked,
identity` is malformed. This rule was added to `HttpObjectDecoder`
alongside the fix for CVE-2026-42581, nested inside a pre-existing
`protocolVersion() == HttpVersion.HTTP_1_1` condition — the same
condition that gates a different, older check (the
Content-Length/Transfer-Encoding conflict handling).
Under the default configuration this is harmless: an earlier guard
already rejects any Transfer-Encoding header on a non-1.1 message
outright, so the ordering check's version scoping is not expected to be
exercised under normal use. However,
`HttpDecoderConfig#setUseRfc9112TransferEncoding(false)` is a documented
opt-out for restoring RFC 7230 behavior, and under that configuration a
non-1.1 message can legitimately carry Transfer-Encoding without being
rejected for it. In that case, the inherited version gate meant the
chunked-must-be-last check was silently skipped for HTTP/1.0 (and other
non-1.1 versions) — a message with `Transfer-Encoding: chunked,
identity` would decode successfully instead of being rejected.
### Modification
- Extracted the chunked-must-be-last check from inside the
`protocolVersion() == HTTP_1_1` block in `HttpObjectDecoder#readHeaders`
and gave it its own, version-independent condition, since the RFC 9112
ordering rule has no dependency on protocol version.
- Added two regression tests to `HttpRequestDecoderTest`: one
reproducing the original scenario (HTTP/1.0,
`useRfc9112TransferEncoding(false)`, `Transfer-Encoding: chunked,
identity)`, and a companion using a non-no-op trailing encoding
(`chunked, gzip`) confirming the fix isn't tied to the specific encoding
that follows `chunked`.
- Corrected a pre-existing inaccuracy in
`handleTransferEncodingChunkedWithContentLength`'s javadoc, which stated
that earlier HTTP versions "will reject requests that include
[Transfer-Encoding]" without qualification — true only under the default
configuration, and already inaccurate before this change since
`useRfc9112TransferEncoding(false)` predates it.
### Result
- The chunked-must-be-last validation now applies to any message
carrying a Transfer-Encoding header, independent of protocol version or
the `useRfc9112TransferEncoding` setting.
---------
Signed-off-by: husseinvr97 <[email protected]>
Co-authored-by: Hussein Mustafa <[email protected]>
Co-authored-by: Chris Vest <[email protected]>
[CORS: Don't override vary header if it already
exists](1a896eb)
Motivation:
Netty's CorsHandler silently overwrites existing Vary headers, enabling
cache poisoning and sensitive information disclosure.
Modifications:
- Only set vary header if it not already exists
- Add unit test
Result:
No more cache poisoning possible
---
[Encoding-side validation of MQTT
fields](9975553)
Motivation:
The MqttEncoder should not produce malformed messages if client id,
topics, or usernames contain illegal characters.
Modification:
Add validation of client identifier, will topic, and username to the
encoding path of CONNECT messages, and also to the topic name when
encoding PUBLISH messages.
Result:
The encoder will now throw an exception if any of these fields contain a
NUL byte.
---
[Bound SCTP fragmented message
buffering](c07b97c)
---
[Correctly handle ClientHello with a handshake header split across
TLS…](a8f53f2)
… records
Motivation:
The handshake header (HandshakeType + 3-byte length = 4 bytes) may be
delivered across multiple TLS records. SslClientHelloHandler assumed
these
4 bytes were always contained in the first record and read them directly
from it, which is incorrect when the header spans records.
Modification:
- Read the handshake header directly from the record only when the full
4 bytes are contained in it.
- Otherwise aggregate the record payloads into handshakeBuffer and read
the
handshakeType and handshakeLength from the buffer once at least 4 bytes
are available.
- Aggregate the handshake header together with the body and slice past
the
4-byte header once the full ClientHello has been buffered.
- Add SniHandlerTest cases for fragment sizes 1-4.
Result:
ClientHello messages whose handshake header is fragmented across
multiple
TLS records are parsed correctly.
---
[Harden the SOCKS4/5 input validation at encoding
time](4625406)
Motivation:
SOCKS4 is a delimiter-based protocol, and does not support NUL bytes in
string or byte-sequence fields.
SOCKS5 is a Tag-Length-Value protocol, and does not support lengths
greater than 255.
Modification:
Add validations for NUL bytes and lengths for SOCKS4 and 5,
respectively, and ensure both client- and server-side encoders behave
correctly.
Add tests to verify the correct handling of boundary conditions.
Result:
Correct delimiter and length handling in the SOCKS4/5 encoders, even
when integrators use custom implementations of the message types.
---
[Do not re-aggregate the ClientHello on every received TLS
record](bb74154)
---
[Validate trust manager
configuration](5f1888e)
Motivation:
Certain trust manager configurations were not being validated against
the configured endpoint identification algorithm.
Modification:
Add a check that fails fast when the configured trust manager does not
support the required verification mode.
Result:
Misconfigured trust manager setups are now rejected explicitly instead
of failing silently.
---------
Co-authored-by: Norman Maurer <[email protected]>
Co-authored-by: yawkat <[email protected]>
Co-authored-by: multicode <[email protected]>
Co-authored-by: Violeta Georgieva
<[email protected]>
(cherry picked from commit 1b5abc6)
Motivation:
Explain here the context, and why you're making that change.
What is the problem you're trying to solve.
Modification:
Describe the modifications you've done.
Result:
Fixes #<GitHub issue number>.
If there is no issue then describe the changes introduced by this PR.
Co-authored-by: Norman Maurer <[email protected]>
Auto-port of #17223 to 5.0
Cherry-picked commit: a438814
---
Motivation:
Fix reporting of test results via TestLens.
Modification:
Update to the latest version of the `setup-testlens` action which no
longer requires propagating the `CI` env var and includes a fix that
captures other required GitHub context env vars (e.g., `GITHUB_SHA`)
early so they don't have to propagated to the Docker container, either.
Result:
Test results and failures are now reported by TestLens for Docker-based
Linux builds as well.
Co-authored-by: Marc Philipp <[email protected]>
Co-authored-by: Norman Maurer <[email protected]>
…lution (#17231)
Auto-port of #17100 to 5.0
Cherry-picked commit: 14c628f
---
Motivation:
Commit a6aeb6d (#16749) resolves localhost and *.localhost to loopback
without querying DNS per RFC 6761. Some deployment environments use
*.localhost hostnames that should resolve via DNS to non-loopback
addresses.
Modifications:
- Add -Dio.netty.resolver.dns.resolveLocalhostWithoutDns (default true)
- When false, restore pre-#16749 behavior where only Windows localhost
and the Windows machine hostname are short-circuited to loopback
- Add tests verifying *.localhost falls through to DNS when disabled
Result:
Applications can opt out of automatic loopback resolution for .localhost
hostnames by setting the system property to false.
Fixes
This fixes the scenario where *.localhost is used for non-loopback
addresses, e.g. as an entrypoint into a service mesh.
Co-authored-by: John Reilly <[email protected]>
Co-authored-by: Chris Vest <[email protected]>
Motivation:
Netty's upcoming `java.lang.foreign` (FFM) transports (starting with
kqueue on macOS) need Java bindings to libc and syscalls. jextract can
generate those from C headers, but making jextract a build dependency
would put a JDK tool on every contributor's and CI build path, and
generating at build time makes the output depend on whatever toolchain
happens to be installed. We want the generated bindings committed to
git, reproducible, and produced without jextract ever being required to
build Netty. No existing Netty build step provides a declarative,
testable generator with a reproducibility gate around committed
generated code.
Modification:
Adds `netty5-jextract-maven-plugin` (new module, registered in the root
`<modules>`). Its `generate` goal drives a pre-installed jextract, one
invocation per `<binding>`, and is deliberately not bound to any
lifecycle phase, so it runs on demand and the output is committed.
Ordinary builds and CI compile the committed sources and never invoke or
require jextract.
Key behaviors:
- Verifies `jextract --version` against a configured `<jextractVersion>`
and fails on mismatch, so a divergent binary cannot silently produce
different sources.
- Reads the OS SDK's system headers directly (no vendored headers);
`<functions>`/`<structs>`/... map to jextract `--include-*` flags.
Generation is inherently per-OS.
- Generates into `target/`, then prunes the target package and swaps the
new tree into `src/main/java` via an atomic rename, rolling back and
preserving the previous tree if the swap fails.
- Writes a deterministic `GENERATED.properties` provenance manifest
(jextract version, OS, SDK id) beside the sources.
- Validates configuration up front: duplicate class names, shared
struct/union/typedef symbols (which would clobber on disk), blank
symbols, and an invalid `targetPackage` are rejected with actionable
messages.
Also adds `docs/Jextract.md` (plugin usage and the recommended
`<bindings>` layout) and `docs/FFM-Build-Strategy.md` (how the FFM
transport modules will be structured). No FFM transport module is added
in this PR.
The plugin targets Java 17 (it runs in Maven's JVM using only
`ProcessBuilder`); the generated bindings and the future transports
target Java 25.
Result:
No existing behavior changes: no current module or consumer build path
is affected. Netty gains a reproducible, on-demand generator for
committed FFM bindings, with jextract required only when regenerating,
never to build.
Auto-port of #17185 to 5.0
Cherry-picked commit: 95012ca
---
Motivation:
Netty currently falls back to JCTools atomic queues when `Unsafe` is
unavailable. JCTools 4.0.6 provides VarHandle-based queues that avoid
`Unsafe` while offering a more efficient alternative to the atomic
implementations.
Modification:
Added and shaded the `jctools-core-jdk11` dependency. Updated the queue
factories in `PlatformDependent` to prefer implementations in this
order:
1. Unsafe-based queues when `Unsafe` is available.
2. VarHandle-based queues when `Unsafe` is unavailable but VarHandle is
supported.
3. Atomic queues as the fallback.
Added test coverage for the VarHandle queue selection when `Unsafe` is
disabled.
Result:
Fixes #17157.
Signed-off-by: Arnab Nandy <[email protected]>
Co-authored-by: Arnab Nandy <[email protected]>
Co-authored-by: Chris Vest <[email protected]>
…tration (#17104) (#17248)
Fixes #17103
`clearReadPending()` guards scheduling of `clearReadPendingRunnable`
with an `isRegistered()` check, which reads the `registered` boolean of
`AbstractChannel`. That boolean and the `IoRegistration registration`
field of `AbstractNioChannel` are not updated atomically. When a channel
is deregistered from another thread *after* the `isRegistered()` check
passed but *before* the runnable runs on the `EventLoop`,
`doDeregister()` has already set `registration` to `null`.
`removeReadOp()` then obtained the field via `registration()` (which
only `assert`s non-null) and dereferenced it, producing the reported
`NullPointerException` in production (or an `AssertionError` when
assertions are enabled):
```
java.lang.NullPointerException
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.removeReadOp(AbstractNioChannel.java:268)
at io.netty.channel.nio.AbstractNioChannel.clearReadPending0(AbstractNioChannel.java:223)
at io.netty.channel.nio.AbstractNioChannel$1.run(AbstractNioChannel.java:66)
...
```
Make `removeReadOp()` read the `registration` field directly and
null-check it before use, mirroring the null-safe idiom already used by
`doBeginRead()` in the same class. Behaviour is unchanged when the
channel is still registered.
`removeReadOp()` no longer throws when the channel has been deregistered
concurrently.
Added
`AbstractNioChannelTest#testRemoveReadOpDoesNotThrowAfterDeregister`,
which registers a `NioSocketChannel`, deregisters it (clearing the
registration), then invokes `removeReadOp()`. The test fails on the
current code (NPE / AssertionError at `AbstractNioChannel.java:264` →
`registration()` at `:156`) and passes with this change.
Verification done: built `transport` (+ deps) and ran the new regression
test (fails before / passes after the fix); ran the existing
`NioEventLoopTest` (13 tests, all green); ran the project checkstyle
execution (`checkstyle:check@check-style`, no violations).
Co-authored-by: Norman Maurer <[email protected]>
Co-authored-by: seonwoojung <[email protected]>
Auto-port of #17235 to 5.0
Cherry-picked commit: e9873bd
---
Motivation:
The published POM for `netty-codec-native-quic` contains the unresolved
`${packaging.type}` property. Some downstream dependency resolvers
interpret this property as the artifact extension, resulting in attempts
to resolve artifacts such as
`netty-codec-native-quic-4.2.15.Final.${packaging.type}`.
Modification:
Configure the Maven Flatten Plugin for netty-codec-native-quic,
following the existing Netty publication pattern. This produces a
consumer POM with the packaging property resolved while preserving the
profile-driven build
configuration.
Result:
The published consumer POM no longer contains an unresolved packaging
property.
Fixes #17041.
Signed-off-by: Arnab Nandy <[email protected]>
Co-authored-by: Arnab Nandy <[email protected]>
Motivation:
The decompressor API migration tracked in
#16743 needs per-format
implementations split into independently reviewable changes. Brotli
support is one of the remaining formats after the core decompressor API
landed in #16745.
Modification:
- Add `BrotliDecompressor` using the new `Decompressor` API.
- Add `BrotliDecompressorTest` using the shared decompressor contract
tests.
- Fix `BrotliEncoder` close handling so the finish future returned
during close is completed by the writer.
Result:
Brotli now has a reusable decompressor implementation that can be used
without a channel-based decoder, and the codec-compression module
verifies successfully.
Part of #16743.
---------
Co-authored-by: multicode <[email protected]>
(cherry picked from commit
b8fb58f)
---------
Co-authored-by: Jonas Konrad <[email protected]>
Co-authored-by: multicode <[email protected]>
Co-authored-by: Norman Maurer <[email protected]>
…it (#17254)
Motivation:
Two JextractLocator tests assert that the locator rejects a configured
jextract path that exists but is not executable. Their setup builds that
fixture with File.setExecutable(false), which returns false on operating
systems that have no POSIX execute bit, so the precondition assertion
fails and the tests turn red on the Windows CI job even though the
scenario they cover cannot exist there.
Modification:
Both tests now guard their setup with a JUnit assumption that the
platform can actually represent a non-executable file, meaning
setExecutable(false) succeeds and canExecute() then reports false. Where
that holds the tests run and assert the rejection behavior as before.
Where it does not, such as Windows NTFS, the tests are skipped rather
than failing.
Result:
The two locator tests keep full coverage on platforms where a
non-executable file is meaningful and are cleanly skipped where it is
not, removing the spurious Windows failure.
Motivation:
Nothing really benefits from HpackEncoder.setMaxHeaderTableSize() being
passed a buffer, because the buffer won't be written until the next
headers are encoded anyway. Using a separate buffer also means we have
to limit its size.
Modification:
Remove the buffer from setMaxHeaderTableSize(), and just write to the
regular buffer when encoding the next headers.
Result:
Better memory handling and more cohesive code.
(cherry picked from commit 0b6937b)
Motivation:
Multiple Content-Length values need to be handled consistently
regardless of the protocol version.
Modifications:
- Validate multiple Content-Length values also for HTTP/1.0 and earlier
- Add junit test
Result:
Correctly handle multiple Content-Length
(cherry picked from commit 15198ea)
…m a revoked peer after OCSP fails
Motivation:
When OCSP fails due of revoked cert we need to ensure we not forward received bytes to the next handler as otherwise it might assume this data is trusted.
Modifications:
- Discard buffered bytes in case of failure
- Add unit test
Result:
Only forward bytes when its safe to do so
(cherry picked from commit ce93845)
Motivation:
Letting zero-length handshake records fall through to the ClientHello
reassembly logic means they are silently accumulated: maxClientHelloLength
only checks the declared handshake length, which an empty record never
sets. An attacker could keep the channel open and make us buffer an
unbounded number of empty records (200,000 records are only 1MB) without
any lookup happening. Zero-length handshake records are also forbidden by
RFC 8446 section 5.1, and SslHandler treats them as not TLS anyway once a
context was selected, so no working client depends on them.
Modifications:
- Fail the handshake with a NotSslRecordException, and notify via
SniCompletionEvent, when a handshake record has no payload, regardless
of its position (leading or interleaved with ClientHello fragments).
- Rework the tests to assert the fail-closed behavior, including the case
of many empty records not being buffered.
Result:
Empty handshake records can neither be used to bypass the SNI based
context selection nor to make us buffer unbounded amounts of data.
(cherry picked from commit 8c9e77f)
…alanced
Motivation:
XmlFrameDecoder kept no parser state across decode() invocations: every
field used to scan the buffer was a local variable re-initialized at the
top of the method, and the scan loop always restarted from the current
reader index. A remote peer that opened an element (e.g. "<a>") and then
trickled non-markup content one byte per read kept the element
permanently unbalanced, so the reader index never advanced and each of
the n decode() calls rescanned the whole accumulated buffer, making the
total work O(n^2) on the event-loop thread. A prior fix
(4.2.16.Final/4.1.136.Final) only special-cased the closing-tag scan and
did not address this general rescan-from-scratch behavior, so it was
still exploitable.
Modifications:
- Turn the per-call local parser state into instance fields, and add a
scanOffset field that remembers how far the buffer has already been
scanned, similar to the offset field in LineBasedFrameDecoder.
- Resume scanning from scanOffset instead of the reader index, and reset
all state once a full element is extracted or the decoder bails out on
a corrupted/oversized frame.
- Where a decision (comment/CDATA start, "/>" detection) depends on
bytes that haven't arrived yet, stop scanning at that byte instead of
skipping past it, so it gets re-examined once more data is available.
Result:
XmlFrameDecoder no longer rescans previously examined bytes, so a
trickled, never-balanced element is handled in linear rather than
quadratic time. Added a regression test that trickles 200,000 bytes
after an unbalanced "<a>" under a time bound; it hangs on the previous
implementation and completes in well under a second with the fix. Also
added tests covering comment/CDATA start markers and "/>" split across
separate reads.
(cherry picked from commit 3987110)
Motivation:
SocksInitRequestDecoder read the SOCKS5 greeting's NMETHODS octet with
readByte(), which returns a signed Java byte. Wire values 0x80-0xFF
(128-255 offered auth methods, all spec-legal) sign-extend to -128..-1,
making the "authSchemeNum > 0" guard false and sending the decoder down
the empty-auth-scheme-list branch without consuming the N method bytes
that follow. Since the decoder then removes itself from the pipeline,
ByteToMessageDecoder forwards those unconsumed, attacker-controlled
bytes as a raw ByteBuf to the next handler, which can desync the
pipeline or be smuggled in as a bogus follow-up protocol message.
Separately, a wire value of 0 was accepted as a valid zero-method
greeting even though RFC 1928 section 3 requires NMETHODS >= 1.
Modification:
Read NMETHODS with readUnsignedByte() so all wire values 0-255 are
interpreted correctly, and reject NMETHODS == 0 instead of emitting an
empty-auth-scheme SocksInitRequest. Add a regression test covering
0x80, 0xFF, 0x00 and the normal single-method case, asserting the
decoded scheme count and that no leftover ByteBuf reaches the next
handler.
Result:
SocksInitRequestDecoder now correctly consumes every method byte
advertised on the wire and rejects malformed zero-method greetings,
closing the auth-scheme bypass and pipeline desync.
(cherry picked from commit 04ab507)
Motivation:
When IORING_RECVSEND_BUNDLE is enabled, one completion can span several
consecutive provided-buffer ring entries, and AbstractIoUringStreamChannel
walks them by calling IoUringBufferRing.nextBid(bid) to find the next
entry. nextBid(...) computed (bid + 1) & (allocatedBuffers - 1), which
only matches (bid + 1) % allocatedBuffers when allocatedBuffers is a
power of two and stays unchanged for the whole bundle walk. Neither
holds in general: allocatedBuffers grows by batchSize increments and so
is often not a power of two (e.g. 4 -> 8 -> 12 -> 16), and useBuffer(...)
can grow allocatedBuffers as a side effect before the caller asks for the
next bid, changing the modulus mid-walk. Either case makes the caller
read the wrong ring slot: data from an unrelated buffer gets delivered
to the pipeline, the buffer the kernel actually filled is never
delivered or recycled, and a ring entry can end up pointing at a buffer
Netty already released.
Modifications:
- Change IoUringBufferRing.nextBid(...) to take the allocated buffer
count explicitly and use real modulo instead of a bitmask, since that
count is not guaranteed to be a power of two.
- Add IoUringBufferRing.allocatedBuffers() so callers can snapshot the
count.
- In AbstractIoUringStreamChannel's bundle-walk loop, snapshot
allocatedBuffers() before calling useBuffer(...) for each bid and pass
that snapshot to nextBid(...) afterwards, so a ring growth triggered by
useBuffer(...) can no longer change the wraparound math for the bundle
that is already in flight.
- Add regression tests driving IoUringBufferRing directly against both
scenarios: a non-power-of-two allocatedBuffers count, and a ring growth
happening mid-bundle.
Result:
nextBid(...) always advances to the buffer id the kernel actually filled
next, regardless of how many buffers are currently allocated or whether
the ring just grew.
(cherry picked from commit 1412112)
Motivation:
DnsCodecUtil.decodeDomainName() sized the StringBuilder used to
accumulate a decoded name to twice the whole remaining message
buffer, rather than to the RFC 1035 maximum name length of 255
characters. Since this allocation happens once per record, and a
single frame-legal DNS message can carry thousands of records, a
crafted ~64 KiB message can drive hundreds of MB of transient
allocation on the decoding thread, saturating GC and stalling the
event loop.
Modification:
- Cap the initial capacity at the maximum valid domain name length
(introduced as DnsCodecUtil.MAX_DOMAIN_NAME_LENGTH) instead of
scaling it with the number of bytes left in the message. Add a
regression test asserting the computed capacity stays bounded
regardless of how many bytes remain in the buffer.
- Limit the number of compression pointers followed per name to 127, the
maximum number of labels a valid name can have. This also terminates
loops, so the previous loop check is replaced.
- Raise MAX_RECORDS_PER_SECTION to 4096, enough for a full 64 KiB TCP
message of minimal records with compressed names.
- Add tests for the pointer limit and loop detection.
Result:
The cost of decoding a single name is constant, and large legitimate DNS
Decoding a DNS message with many records no longer allocates a
working buffer proportional to the message size for every record
name.
Bound compression pointer hops per DNS name and raise the record count limit
Motivation:
decodeDomainName() only guarded against compression pointer loops by
allowing up to (message size / 2) pointer hops per name. A crafted message
with a long pointer chain and many records pointing at its end makes the
decoding cost proportional to records * message size. The per-section
record count limit of 128 mitigated this, but still allowed millions of
hops per message, while rejecting legitimate large responses (e.g. large
RRsets over TCP, DNSSEC additional data, or truncated UDP responses that
should trigger a TCP fallback).
Modification:
messages are no longer rejected.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit a7a5cba)
Motivation:
IpSubnetFilter.sortAndFilter() de-duplicates overlapping CIDR rules by
network-address containment alone, without checking ruleType(). Given
an ACCEPT supernet followed by a more specific REJECT subnet (e.g.
ACCEPT 10.0.0.0/8 + REJECT 10.5.0.0/16), the REJECT rule is silently
dropped and every address in it is implicitly accepted instead. This
binary-search based design cannot express longest-prefix-match
ACCEPT/REJECT semantics, so the unsupported configuration must be
rejected rather than silently failing open.
Separately, AbstractRemoteAddressFilter.handleNewChannel() removed
itself from the pipeline before calling accept(). If accept() threw,
the exception propagated to the pipeline's unhandled-exception handler,
which only logs, leaving the channel open and unfiltered instead of
closed.
Modifications:
- In IpSubnetFilter.sortAndFilter(), throw IllegalArgumentException
when an overlapping child rule has a different ruleType than its
parent; same-type overlaps are still coalesced as before.
- Add IpSubnetFilterRule.toString() so the new exception message is
readable.
- In AbstractRemoteAddressFilter.handleNewChannel(), evaluate accept()
before removing the handler from the pipeline, and close the channel
and rethrow if it throws.
- Add regression tests for both fixes.
Result:
IpSubnetFilter no longer silently bypasses REJECT rules when
overlapping with a differently-typed CIDR, and a throwing accept()
implementation fails closed instead of open.
(cherry picked from commit 8ad7a4a)
Motivation:
CVE-2026-45536 hardened the epoll/kqueue native recvFd path
(netty_unix_socket_recvFd()) to reject truncated cmsgs, compute the
real number of fds from cmsg_len, and close any surplus fds. The
io_uring transport never received the same treatment:
IoUringDomainSocketChannel's IORING_OP_RECVMSG completion path
(CmsgHdr.readScmRights()) just read a single int at the cmsg data
offset with no check of cmsg_len, cmsg_level/cmsg_type or MSG_CTRUNC.
On 64-bit Linux CMSG_SPACE(sizeof(int)) and CMSG_SPACE(2 *
sizeof(int)) are both 24 bytes because of 8-byte alignment, so a peer
can pack two fds into a single SCM_RIGHTS message that fits entirely
inside the 24-byte buffer Netty sized for one fd. The kernel never
sets MSG_CTRUNC in that case, Netty only ever returns the first fd,
and the second is silently leaked. A peer of a channel using
DomainSocketReadMode.FILE_DESCRIPTORS could repeat this to exhaust
the process's file descriptor limit.
Modifications:
- MsgHdr.getCmsgData() now reads msg_controllen (rejecting a
completion with no ancillary data) and msg_flags (checking
MSG_CTRUNC) from the completed msghdr.
- CmsgHdr.readScmRights() validates cmsg_level/cmsg_type, computes the
actual number of delivered fds from cmsg_len via a new pure helper
numFds(), and if anything other than exactly one well-formed fd was
received, closes every fd that was actually delivered and throws an
IOException instead of returning a partial (and leaking) result.
- Added Native.MSG_CTRUNC and Native.SIZEOF_INT JNI-backed constants
and a Native.close(fd) binding, following the existing statically
referenced constant/close-fd patterns, so the fix avoids hardcoding
platform-specific values and doesn't need to allocate a
FileDescriptor just to close a leaked fd.
- Added CmsgHdrTest, which exercises the numFds() arithmetic
(including the exact 24-byte/2-fd scenario) as a pure function with
no native library dependency.
Result:
io_uring domain socket channels in FILE_DESCRIPTORS mode no longer
leak file descriptors when a peer packs more than one fd into a
single SCM_RIGHTS control message.
(cherry picked from commit 4105afd)
…rements (#17907)
Auto-port of #17756 to 5.0
Cherry-picked commit: 098e103
---
Motivation:
When the QPACK decoder resumes a blocked stream, it decodes the header
block and sends a Section Acknowledgment. As described in RFC 9204,
section 4.4.1, the encoder then raises its Known Received Count to the
Required Insert Count of that header block.
`QpackDecoder` did not take this into account. `lastAckInsertCount` was
only updated when an Insert Count Increment was sent, so the next Insert
Count Increment included the insertions that the Section Acknowledgment
had already acknowledged.
Example, with the dynamic table and blocked streams enabled:
1. A header block on stream 0 references the first dynamic table entry
before the decoder received it, so stream 0 is blocked.
2. The first insertion arrives. Stream 0 is resumed and a Section
Acknowledgment is sent (the encoder's Known Received Count is now 1).
`ackEachInsert()` skips the Insert Count Increment, as the Section
Acknowledgment covered it, but `lastAckInsertCount` stays 0.
3. The second insertion arrives and the decoder sends an Insert Count
Increment of 2 instead of 1.
The encoder's Known Received Count (3) is now larger than the number of
insertions (2). RFC 9204, section 4.4.3, requires the encoder to treat
this as a connection error of type QPACK_DECODER_STREAM_ERROR. Netty's
own `QpackEncoder` does that (`INVALID_KNOW_RECEIVED_COUNT_INCREMENT`),
and the connection is closed. This happens every time a blocked stream
is resumed and another insertion follows, which is the normal case when
a peer uses blocking references.
Modification:
- Update `lastAckInsertCount` when a Section Acknowledgment is sent for
a header block with a larger Required Insert Count.
- Don't send an Insert Count Increment when all insertions were
acknowledged already, even if the `QpackDecoderStateSyncStrategy` asks
for one. An increment of 0 is a connection error too, and a custom
strategy can return `true` from `entryAdded(...)` at any time.
- Add
`QpackDecoderTest.insertCountIncrementDoesNotRepeatInsertsAcknowledgedBySection`.
It blocks a stream on the first insertion, adds two insertions, replays
the instructions written to the decoder stream the way an encoder does,
and checks that the Known Received Count is 2 and that no increment is
0. It runs with `ackEachInsert()` and with a strategy that acknowledges
every insertion.
- `QpackEncoderDecoderTest.duplicateWithBlockedStreams` encoded a header
block that is never decoded on the same stream as the header block that
is decoded. The encoder applied the Section Acknowledgment to the first
one (Section Acknowledgments of a stream are processed in order), and
the extra Insert Count Increment made up for it. The test now uses
another stream for the header block that is never decoded.
Result:
Insert Count Increments no longer acknowledge insertions twice, and the
connection is no longer closed with QPACK_DECODER_STREAM_ERROR after a
blocked stream was resumed.
Co-authored-by: allthingssecurity <[email protected]>
Co-authored-by: Norman Maurer <[email protected]>
Auto-port of #17765 to 5.0
Cherry-picked commit: afb80a7
---
Motivation:
IpSubnetFilter keeps only the widest of overlapping rules and relies on
that rule being sorted first. d82c6c3 now orders rules with the same
network address wider first and compares IPv4 addresses as unsigned, but
there is no test for a narrower rule added before a wider one with the
same network address (10.0.0.0/24 then 10.0.0.0/8), or for 0.0.0.0/0
combined with a network at or above 128.0.0.0.
Modification:
- Add unit tests for both cases
Result:
Regression coverage for overlapping rules.
Co-authored-by: Raghuvardhan-Reddy78 <[email protected]>
Co-authored-by: Norman Maurer <[email protected]>
#17755) (#17839)
Motivation:
When a `QuicStreamChannel` is closed before the FIN of the remote peer
was read, `QuicheQuicStreamChannel` never reads from that stream again:
- `recv()` only loops `while (active && readPending && readable)`,
- `readable()` only calls `recv()` when a read is pending,
- `close()` sends our FIN but leaves the receive side alone.
quiche keeps the unread data and the FIN, which has three effects:
1. The data keeps its connection-level flow control credit, as quiche
only returns credit for data the application consumed. A client that
closes streams while responses are still arriving (cancelled requests, a
common case) uses up the connection window. After that, no stream of the
connection receives data anymore.
2. The stream is never completed and collected, so its stream credit is
never returned to the remote peer (no MAX_STREAMS update). A server that
closes streams before it read the request's FIN (for example after
writing an early error response) stops the client from opening new
streams once `initialMaxStreamsBidirectional` such streams were closed.
3. The closed stream channel is never removed from the streams of its
`QuicChannel`, as `removeStreamFromParent()` requires the FIN to be
read.
Reproduced on the real transport with the released 4.2.18 native library
(the JNI code is unchanged since):
- Server with `initialMaxStreamsBidirectional(2)` that closes each
stream on its first `channelRead`: the client completes 2 streams;
creating the 3rd fails with `QUICHE_ERR_STREAM_LIMIT`, and
`peerAllowedStreams(BIDIRECTIONAL)` stays 0. With a server that closes
after the FIN, all 6 streams complete.
- Client with `initialMaxData(256 KiB)` that closes each stream after
the first chunk of a 64 KiB response: after 4 such requests, the next
request gets no data at all and the connection idles out.
Modification:
- At the end of `recv()`, if the channel is closed, read and drop what
is left (`discardInput(...)`) until quiche reports no more data, the
FIN, or an error (stream reset or closed connection).
`removeStreamFromParent()` then removes the stream once the end of the
input was seen.
- `readable()` calls `recv()` for a closed channel even if no read is
pending, so data and the FIN that arrive after the close are dropped
too.
- `close()` drops what is left if the stream was readable already (when
`close()` is called from `channelRead(...)`, `recv()` does it after its
loop).
- Add
`QuicStreamLimitTest.testStreamLimitRestoredWhenStreamClosedBeforeEndOfInput`:
the server closes each stream on its first read, before the client's FIN
arrives; the client creates three streams in a row with a stream limit
of 1 and checks that the server returns the stream credit
(`QuicStreamLimitChangedEvent`) each time.
- Add
`QuicStreamChannelCloseTest.testCloseBeforeEndOfInputReturnsFlowControlCredit`:
the client closes a stream after the first bytes of a response that is
twice its connection window, then checks that the next response is
received completely.
An alternative is to send STOP_SENDING from `close()` (`stream_shutdown`
of the read side), which also tells the peer to stop sending. It needs
an application error code, which the transport does not know, and the
receive side still has to be drained or tracked until the peer's FIN or
RESET_STREAM arrives to remove the stream channel. This change keeps the
current wire behaviour and only consumes what arrives.
Result:
Closing a QUIC stream before the end of its input no longer leaks
connection flow control credit, stream credit and the stream channel.
---------
Co-authored-by: Norman Maurer <[email protected]>
---------
Co-authored-by: allthingssecurity <[email protected]>
…l idioms in tests (#17910)
Motivation:
Tests widely used assertTrue(x instanceof Y) and try { ...; fail(); }
catch (Y y) { ... } instead of the JUnit 5 assertInstanceOf/assertThrows
APIs, which give clearer failure messages and remove boilerplate.
Modification:
- Replace assertTrue(x instanceof Y) with assertInstanceOf(Y.class, x)
everywhere, except a couple of compound boolean expressions that
can't be expressed as a single instanceof check.
- Replace the try/fail/catch "expect an exception" idiom with
assertThrows(...), keeping try/finally wrappers where needed and
leaving fail() usages that aren't exception-expectation idioms
(unreachable-code markers, conditional assertions) untouched.
- Adapt to 5.0, where tests already unwrap the CompletionException
thrown by Future.sync() and friends.
Result:
Tests read more directly and get JUnit 5's built-in
instanceof/exception failure messages instead of a bare assertion
failure.
(cherry picked from commit 6ea0fe2)
…ds (#17911)
Auto-port of #17665 to 5.0
Cherry-picked commit: 07aed99
---
Motivation:
When `DelimiterBasedFrameDecoder` finds no delimiter in the buffer, it
counts all readable bytes as frame content and, while discarding a too
long frame, skips all of them. That includes a trailing partial
delimiter whose remaining bytes are in the next read. With a multi-byte
delimiter, this loses frames. In both examples below the delimiter is
`##` and `maxFrameLength` is 4:
- While a too long frame is discarded, the first bytes of the delimiter
that ends it are thrown away. The delimiter is never seen, so discarding
continues through the next valid frame, which is lost silently. For
example, `AAAAAAAAAA#` then `#ok##next##` gives `TooLongFrameException,
next`: the `ok` frame is lost. With `failFast = false`, the two frames
are also reported as a single exception.
- A frame of up to `maxFrameLength` bytes is rejected when a read ends
inside its delimiter, because the partial delimiter is counted. For
example, `ABCD#` then `#ok##` gives only `TooLongFrameException`: `ABCD`
is lost, and `ok` too (by the first case).
Single-byte delimiters, and line delimiters (which are handled by
`LineBasedFrameDecoder`), are not affected.
Modification:
- When no delimiter is found, compute the longest suffix of the buffer
that is the beginning of a delimiter, and don't count or skip it. This
check only runs when no delimiter was found. It compares at most
`delimiter length - 1` bytes per delimiter, next to the existing search
of the whole buffer.
- New tests in `DelimiterBasedFrameDecoderTest`:
- a frame of `maxFrameLength` bytes with its delimiter split across
reads;
- a delimiter split across reads while discarding, with and without
`failFast`;
- `maxFrameLength` is still enforced when the delimiter is split.
Result:
Frames are not lost when a multi-byte delimiter is split across reads.
The limit is still exact: the branch that finds the delimiter checks it
as before.
---------
Co-authored-by: allthingssecurity <[email protected]>
Co-authored-by: Norman Maurer <[email protected]>
…gHttpAndValidateCertificateUsingOcspTest() (#17915)
Auto-port of #17913 to 5.0
Cherry-picked commit: 3ab4fff
---
Motivation:
connectUsingHttpAndValidateCertificateUsingOcspTest() made it hard to
understand why it failed.
Modifications:
Directly store the Status and use assertEquals(...)
Result:
Easier to understand why the test failed
Co-authored-by: Norman Maurer <[email protected]>
Auto-port of #17870 to 5.0
Cherry-picked commit: 07153e9
---
Motivation:
brotli4j's `DecoderJNI.Wrapper` reports `NEEDS_MORE_INPUT` after a
`pull` as soon as all pushed input has been consumed, even if the
decoder could still produce more output from its internal state, e.g.
for a long back-reference. The caller has to `push(0)` to continue, as
brotli4j's own `Decoder.decompress` does.
`BrotliDecoder` returns when it sees `NEEDS_MORE_INPUT` and has no input
left, and does nothing for empty input, so the remaining output is lost.
For example, 524288 zero bytes compressed with a 2^18 window decode to
only 262144 bytes, which also affects `HttpContentDecompressor` with
`Content-Encoding: br`. `BrotliDecompressor` calls `push(0)` once in
`endOfInput()`, which is not enough when the output needs several
rounds: 100000 zero bytes compressed with a 2^10 window decode to only
2048 bytes.
Modification:
- `BrotliDecoder` and `BrotliDecompressor`: remember whether output was
pulled since the last push. If the decoder reports `NEEDS_MORE_INPUT`,
has no pending output and there is no input left, push again without new
input instead of asking for more input. Without a pull since the last
push, the status is the decoder's real one, so truncated input still
ends in `NEEDS_MORE_INPUT`.
- Add tests with long runs of zeros at small window sizes and different
input chunk sizes, and with a truncated stream.
Result:
The Brotli decoders no longer truncate highly compressible data.
Discovered by fuzzing.
Co-authored-by: Jonas Konrad <[email protected]>
Co-authored-by: Norman Maurer <[email protected]>
…ders (#17912) (#17921)
Motivation:
`SocksCmdRequestDecoder`, `SocksCmdResponseDecoder` and
`SocksAuthRequestDecoder` read the DOMAIN address length octet (RFC
1928) and the ULEN/PLEN octets (RFC 1929) as signed bytes. Wire values
`0x80..0xFF` sign-extend to negative lengths, so spec-legal domain
names, user names and passwords of 128 to 255 bytes can not be decoded,
even though `SocksCmdRequest`, `SocksCmdResponse` and `SocksAuthRequest`
accept and encode them.
Modification:
Peek the four length octets with `getUnsignedByte()`. Add regression
tests with 128 and 255 byte domain names, user names and passwords for
each decoder.
Result:
The legacy SOCKS5 decoders accept every length value the protocol
allows.
…17911) (#17917)
Auto-port of #17665 to 5.0
Cherry-picked commit: 07aed99
---
Motivation:
When `DelimiterBasedFrameDecoder` finds no delimiter in the buffer, it
counts all readable bytes as frame content and, while discarding a too
long frame, skips all of them. That includes a trailing partial
delimiter whose remaining bytes are in the next read. With a multi-byte
delimiter, this loses frames. In both examples below the delimiter is
`##` and `maxFrameLength` is 4:
- While a too long frame is discarded, the first bytes of the delimiter
that ends it are thrown away. The delimiter is never seen, so discarding
continues through the next valid frame, which is lost silently. For
example, `AAAAAAAAAA#` then `#ok##next##` gives `TooLongFrameException,
next`: the `ok` frame is lost. With `failFast = false`, the two frames
are also reported as a single exception.
- A frame of up to `maxFrameLength` bytes is rejected when a read ends
inside its delimiter, because the partial delimiter is counted. For
example, `ABCD#` then `#ok##` gives only `TooLongFrameException`: `ABCD`
is lost, and `ok` too (by the first case).
Single-byte delimiters, and line delimiters (which are handled by
`LineBasedFrameDecoder`), are not affected.
Modification:
- When no delimiter is found, compute the longest suffix of the buffer
that is the beginning of a delimiter, and don't count or skip it. This
check only runs when no delimiter was found. It compares at most
`delimiter length - 1` bytes per delimiter, next to the existing search
of the whole buffer.
- New tests in `DelimiterBasedFrameDecoderTest`:
- a frame of `maxFrameLength` bytes with its delimiter split across
reads;
- a delimiter split across reads while discarding, with and without
`failFast`;
- `maxFrameLength` is still enforced when the delimiter is split.
Result:
Frames are not lost when a multi-byte delimiter is split across reads.
The limit is still exact: the branch that finds the delimiter checks it
as before.
---------
Co-authored-by: allthingssecurity
<[email protected]>
Co-authored-by: Norman Maurer <[email protected]>
---------
Co-authored-by: Netty Project Bot <[email protected]>
Co-authored-by: allthingssecurity <[email protected]>
…nShutdownThrowsNoUnsupportedOperationException (#17924)
Motivation:
testTaskRemovalOnShutdownThrowsNoUnsupportedOperationException submits
tasks to the EventLoop in a tight loop until it gets rejected. If the
producer is faster than the EventLoop the task queue grows without
bounds
until the EventLoop is shut down, which sometimes resulted in an
OutOfMemoryError on CI.
Modifications:
Yield in the producer while more than 1024 tasks are pending and the
EventLoop is not shutting down yet.
Result:
The test no longer allocates an unbounded number of queue entries and
still races task removal against shutdown.
|