GeezerVison is showing github.com — crisp nova cceda091 by normanmaurer · Pull Request #18109 · netty/netty
Conversation
- Upgrade BouncyCastle to 1.82 and use BOM (Upgrade BouncyCastle to 1.82 and use BOM #15854)
- Mark EventLoopTaskQueueFactory deprecated (Mark EventLoopTaskQueueFactory deprecated #15857)
- Don't fail build if we could not delete directory to free up space (Don't fail build if we could not delete directory to free up space #15867)
- Disable module-info plugin detection of provides declaration (Disable module-info plugin detection of provides declaration #15868)
- Update to latest module-info plugin (Update to latest module-info plugin #15858)
- Fix git 2.x download URL for the maven scm plugin (Fix git 2.x download URL for the maven scm plugin #15871)
- chore: Update javadoc of CompositeByteBuf#releaes method (chore: Update javadoc of CompositeByteBuf#releaes method #15864) (chore: Update javadoc of CompositeByteBuf#releaes method (#15864) #15873)
- Ensure Arena.ofShared() is usable before assuming that we can use Are… (Ensure Arena.ofShared() is usable before assuming that we can use Are… #15877)
- 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) #15886)
- Cleanup: Replace usage of deprecated EventLoopGroup implementation (Cleanup: Replace usage of deprecated EventLoopGroup implementation #15881)
- Fix flaky tests in codec-http module (Fix flaky tests in codec-http module #15862)
- ** [io_uring] Fix Unix domain socket support for abstract namespace sockets ( [io_uring] Fix Unix domain socket support for abstract namespace sockets #15876)**
- Fix ZstdEncoder not producing data when source is smaller than block size (Fix ZstdEncoder not producing data when source is smaller than block size #15859)
- Revert "Adjust the execution order of processCancelledTasks (Adjust the execution order of processCancelledTasks #15760)" (Revert "Adjust the execution order of processCancelledTasks (#15760)" #15899)
- Fix Zstd compression for large data (Fix Zstd compression for large data #15861)
- Replace usage of DefaultEventLoopGroup (Replace usage of DefaultEventLoopGroup #15903)
- Mark AbstractEpollStreamChannel.spliceTo(...) methods as deprecated (Mark AbstractEpollStreamChannel.spliceTo(...) methods as deprecated #15911)
- Use ServerBootstrap to bootstrap EpollServerSocketChannel (Use ServerBootstrap to bootstrap EpollServerSocketChannel #15912)
- Implement Quic stream reset frame application protocol error code propagation (Implement Quic stream reset frame application protocol error code propagation #15845)
- Fix race condition in NonStickyEventExecutorGroup causing incorrect i… (Fix race condition in NonStickyEventExecutorGroup causing incorrect i… #15933)
- Update lz4-java dependency with new group ID (Update lz4-java dependency with new group ID #15940)
- Add support for quiche_config_discover_pmtu (Add support for quiche_config_discover_pmtu #15936)
- LocalChannel: Don't fire exception throught pipeline on connect failure (LocalChannel: Don't fire exception throught pipeline on connect failure #15949)
- Update to latest JDK 26 EA build (Update to latest JDK 26 EA build #15951)
- Fix [15908] - Ignore unknown Http3Setting Identifier in Http3SettingsFrame (Fix [15908] - Ignore unknown Http3Setting Identifier in Http3SettingsFrame #15909)
- Socket: Fix handling of abstract namespaces on linux when creating th… (Socket: Fix handling of abstract namespaces on linux when creating th… #15954)
- Discard the following HttpContent for preflight request (Discard the following HttpContent for preflight request #15941)
- Close Channel and fail bootstrap when setting a ChannelOption causes … (Close Channel and fail bootstrap when setting a ChannelOption causes … #15896)
- SctpServerChannelConfig must support ChannelOption.SO_BACKLOG (SctpServerChannelConfig must support ChannelOption.SO_BACKLOG #15964)
- Pcap: Fix possible buffer leak when initializion fails (Pcap: Fix possible buffer leak when initializion fails #15975)
- Update lz4-java version to 1.10.1 (Update lz4-java version to 1.10.1 #15978)
- Use exact length when allocating the acceptedAddress byte[] (Use exact length when allocating the acceptedAddress byte[] #15973) (Use exact length when allocating the acceptedAddress byte[] (#15973) #15984)
- Prevent ManualEventLoop to block on a racy task submission (Prevent ManualEventLoop to block on a racy task submission #15937)
- Fix - Http3FrameCodec decode fail during unknown settings (Fix - Http3FrameCodec decode fail during unknown settings #15998)
- Fix Socket reading of abstract unix domain addresses (Fix Socket reading of abstract unix domain addresses #16010)
- Correct codec-native-quic Fragment-Host (Correct codec-native-quic Fragment-Host #16015)
- Build fixes to allow using the epoll native transport on Android (Build fixes to allow using the epoll native transport on Android #16016)
- Merge commit from fork
- [maven-release-plugin] prepare release netty-4.2.8.Final
- [maven-release-plugin] prepare for next development iteration
- Fix HTTP startline validation (Fix HTTP startline validation #16022)
- Fix MpscIntQueue bug (Fix MpscIntQueue bug #16023)
- LocalChannel: Reduce GC by re-using same Runnable (LocalChannel: Reduce GC by re-using same Runnable #16014)
- Optimize HTTP startline validation (Optimize HTTP startline validation #16030)
- Add missing publishing config for the bom module
- [maven-release-plugin] prepare release netty-4.2.9.Final
- [maven-release-plugin] prepare for next development iteration
- NioDatagramChannel.block(...) does not early return on failure (NioDatagramChannel.block(...) does not early return on failure #16044)
- Make AdaptiveByteBuf.setBytes faster (Make AdaptiveByteBuf.setBytes faster #15736)
- 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)
- allocation free AdaptiveByteBuf::setBytes(byte[]) (allocation free AdaptiveByteBuf::setBytes(byte[]) #16058)
- ChannelPipeline: Add tests for using ChannelHandlerContext and trigge… (ChannelPipeline: Add tests for using ChannelHandlerContext and trigge… #16064)
- Replace FutureListener usage with Lambda where possible (Replace *FutureListener* usage with Lambda where possible #16032) (Replace *FutureListener* usage with Lambda where possible (#16032) #16037)
- Improve exception message generated by
EnhancingX509ExtendedTrustManager (Improve exception message generated by EnhancingX509ExtendedTrustManager #16056)
- Avoid UnsupportedOperationException in CompositeeByteBuf when noUnsafe is true (Avoid UnsupportedOperationException in CompositeeByteBuf when noUnsafe is true #16097)
- Fix typo: 'Seperated' -> 'Separated' in UnixResolverDnsServerAddressStreamProviderTest (Fix typo: 'Seperated' -> 'Separated' in UnixResolverDnsServerAddressStreamProviderTest #16094)
- Fix typo: 'Begining' -> 'Beginning' in HpackDecoderTest (Fix typo: 'Begining' -> 'Beginning' in HpackDecoderTest #16093)
- Fix typo: 'occured' -> 'occurred' in Http3CodecUtils (Fix typo: 'occured' -> 'occurred' in Http3CodecUtils #16091)
- Add SLH-DSA algorithms to pkitesting CertificateBuilder (Add SLH-DSA algorithms to pkitesting CertificateBuilder #16080)
- Improve adaptive allocator thread local performance (Improve adaptive allocator thread local performance #15741)
- fix: prevent DGC init failure if IpMulticastAll cannot be set (fix: prevent DGC init failure if IpMulticastAll cannot be set #16104)
- ChannelPipeline: Manually inline outbound operations as well (ChannelPipeline: Manually inline outbound operations as well #16072)
- Update to latest JDK26 EA build (Update to latest JDK26 EA build #16110)
- Fix typo: 'seperated' -> 'separated' in InvalidLineSeparatorException (Fix typo: 'seperated' -> 'separated' in InvalidLineSeparatorException #16092)
- Add support for cross-signing to pkitesting (Add support for cross-signing to pkitesting #16103)
- Change cargo ndk flag from -p to --platform (Change cargo ndk flag from -p to --platform #16112)
- Set default maxFieldSectionSize to 16MB (Set default maxFieldSectionSize to 16MB #16088)
- [io_uring] submit send over write for sockets ([io_uring] submit send over write for sockets #16095)
- Fix OCSP signature validation when responder is not the issuer (Fix OCSP signature validation when responder is not the issuer #16079)
- Propagate the "android" property into individual iterations (Propagate the "android" property into individual iterations #16113)
- feat(netty-codec-http): more standard http content types (feat(netty-codec-http): more standard http content types #16036)
- Limit QUIC stream and field section sizes to protocol max (Limit QUIC stream and field section sizes to protocol max #16117)
- Update BouncyCastle from 1.82 to 1.83 (Update BouncyCastle from 1.82 to 1.83 #16096)
- 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)
- Buddy allocation for large buffers in adaptive allocator (Buddy allocation for large buffers in adaptive allocator #16053)
- Bump BlockHound version to 1.0.16.RELEASE (Bump BlockHound version to 1.0.16.RELEASE #16134)
- Reimplement IORING_OP_SENDMSG_ZC (Reimplement IORING_OP_SENDMSG_ZC #16130)
- Await termination of SslHandler executor (Await termination of SslHandler executor #16138)
- Fix leak in OpenSslPrivateKeyMethodTest (Fix leak in OpenSslPrivateKeyMethodTest #16145)
- 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)
- Wrap ECONNREFUSED in PortUnreachableException for UDP (Wrap ECONNREFUSED in PortUnreachableException for UDP #16131)
- Ensure ChannelPromise that are used by ChannelOutboundHandler will al… (Ensure ChannelPromise that are used by ChannelOutboundHandler will al… #16052)
- Improve exception message when first HTTP2SettingsFrame has the ack f… (Improve exception message when first HTTP2SettingsFrame has the ack f… #16153)
- Bump up JDK 26 EA to latest version (Bump up JDK 26 EA to latest version #16156)
- Correctly return all TransportParameters (Correctly return all TransportParameters #16162)
- Fix incorrect assert when handling id to channel mappings (Fix incorrect assert when handling id to channel mappings #16163)
- Bump com.ning:compress-lzf (4.2) (Bump com.ning:compress-lzf (4.2) #16160)
- 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 #16167)
- Update to Quiche 0.24.8 (Update to Quiche 0.24.8 #16182)
- 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)
- Update JDK versions to latest patch releases (Update JDK versions to latest patch releases #16184)
- Fix possible ClassCastException when using ReadOnlyAbstractByteBuf (Fix possible ClassCastException when using ReadOnlyAbstractByteBuf #16188)
- Fix adaptive allocator bug from not noticing failed allocation (Fix adaptive allocator bug from not noticing failed allocation #16200)
- Avoid loosing original read exception (Avoid loosing original read exception #16199)
- Delay getBytes() call in ReferenceCountedOpenSslServerContext (Delay getBytes() call in ReferenceCountedOpenSslServerContext #16208)
- remove duplicated SSL.getSniHostname(ssl) call in ExtendedOpenSslSession (remove duplicated SSL.getSniHostname(ssl) call in ExtendedOpenSslSession #16209)
- codec-http: make the default header key and value validators public (codec-http: make the default header key and value validators public #16197)
- Improve chunk picking for the large-size buddy allocator (Improve chunk picking for the large-size buddy allocator #16179)
- codec-http2: move the accessors from Http2Headers to DefaultHttp2Headers (codec-http2: move the accessors from Http2Headers to DefaultHttp2Headers #16217)
- Move default compression options into static variable in HttpContentCompressor (Move default compression options into static variable in HttpContentCompressor #16210)
- Remove unnecessary null check in WebSocketServerExtensionHandler (Remove unnecessary null check in WebSocketServerExtensionHandler #16201)
- Reduce allocations on DefaultHeaders::containsValue (Reduce allocations on DefaultHeaders::containsValue #15843)
- Update some dependencies (Update some dependencies #16198) (Update some dependencies (#16198) #16215)
- Use recommanded finalize chain pattern when override finalize() method (Use recommanded finalize chain pattern when override finalize() method #16212)
- Update to netty-tcnative 2.0.75.Final (Update to netty-tcnative 2.0.75.Final #16227)
- Remove unnecessary allocations and abstractions in HttpContentCompressor (Remove unnecessary allocations and abstractions in HttpContentCompressor #16211)
- [maven-release-plugin] prepare release netty-4.2.10.Final
- [maven-release-plugin] prepare for next development iteration
- Update to latest JDK 26 EA release (Update to latest JDK 26 EA release #16230)
- HTTP3: Allow to support non-standard HTTP3 settings (HTTP3: Allow to support non-standard HTTP3 settings #16171)
- Fix Incorrect nanos-to-millis conversion in epoll_wait EINTR retry loop (Fix Incorrect nanos-to-millis conversion in epoll_wait EINTR retry loop #16245)
- Allocate one large segment and slice for each MsgHdrMemory (Allocate one large segment and slice for each MsgHdrMemory #16234)
- Make RefCntOpenSslContext.deallocate more robust (Make RefCntOpenSslContext.deallocate more robust #16253)
- Epoll: Fix excessive CPU usage when Channel is only registered but no… (Epoll: Fix excessive CPU usage when Channel is only registered but no… #16250)
- Update to gcc for arm 10.3-2021.07 (Update to gcc for arm 10.3-2021.07 #16255)
- Add acmeIdentifier extension support to pkitesting (Add acmeIdentifier extension support to pkitesting #16256)
- Update JDK versions to latest patch releases (Update JDK versions to latest patch releases #16254)
- Avoid allocation in HttpObjectEncoder.addEncodedLengthHex method (Avoid allocation in HttpObjectEncoder.addEncodedLengthHex method #16241)
- Automatic backporting workflow from 4.1 to 4.2 (Automatic backporting workflow from 4.1 to 4.2 #16269)
- Revert "Automatic backporting workflow from 4.1 to 4.2" (Revert "Automatic backporting workflow from 4.1 to 4.2" #16270)
- HTTP2: Correctly account for padding when decompress (HTTP2: Correctly account for padding when decompress #16264)
- Automatic backporting workflow from 4.1 to 4.2 (Automatic backporting workflow from 4.1 to 4.2 #16271)
- Revert "Automatic backporting workflow from 4.1 to 4.2 (Automatic backporting workflow from 4.1 to 4.2 #16271)"
- Automatic backporting workflow from 4.1 to 4.2 (Automatic backporting workflow from 4.1 to 4.2 #16273)
- Backport PRs must be created with personal access tokens (Backport PRs must be created with personal access tokens #16276)
- Expose QuicSslContextBuilder::sni (Expose QuicSslContextBuilder::sni #16178)
- Add more porting workflows (Add more porting workflows #16275)
- Revert "Add more porting workflows (Add more porting workflows #16275)"
- Add more porting workflows (Add more porting workflows #16283)
- Remove the unpooled allocator from test permutations (Remove the unpooled allocator from test permutations #16282)
- Some polishing of the porting workflows (Some polishing of the porting workflows #16288)
- 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)
- Update to latest JDK26 EA build (Update to latest JDK26 EA build #16295)
- Add javadoc to clarify responsibility of the user when generating the remote connection id (Add javadoc to clarify responsibility of the user when generating the remote connection id #16293)
- Make the build run faster (Make the build run faster #16290)
- Fix IDE warnings in SslHandler (Fix IDE warnings in SslHandler #16237)
- Decrease Long allocations and map.put calls in ReferenceCountedOpenSllEngine in handshake() method (Decrease Long allocations and map.put calls in ReferenceCountedOpenSllEngine in handshake() method #16242)
- Support boringssl SSLCredential API (Support boringssl SSLCredential API #15919)
- Fix high-order bit aliasing in HttpUtil.validateToken (Fix high-order bit aliasing in HttpUtil.validateToken #16279)
- Improve multi-byte access performance when UNALIGNED availability is unknown (Improve multi-byte access performance when UNALIGNED availability is unknown #16207)
- Avoid unnecessary SSL.getVersion() call and string allocation in ReferenceCountedOpenSslEngine (Avoid unnecessary SSL.getVersion() call and string allocation in ReferenceCountedOpenSslEngine #16278)
- Support more branch freedom for auto-porting (Support more branch freedom for auto-porting #16300)
- fix: the precedence of + is higher than >> (fix: the precedence of + is higher than >> #16312)
- AdaptiveByteBufAllocator: make sure byteBuf.capacity() not greater than byteBuf.maxCapacity() (AdaptiveByteBufAllocator: make sure byteBuf.capacity() not greater than byteBuf.maxCapacity() #16309)
- Fix flaky PooledByteBufAllocatorTest (Fix flaky PooledByteBufAllocatorTest #16313)
- Fix pooled arena accounting tests (Fix pooled arena accounting tests #16321)
- Fix RunInFastThreadLocalThreadExtension (Fix RunInFastThreadLocalThreadExtension #16314)
- AdaptivePoolingAllocator: call
unreserveMatchingBuddy(...) if byteBuf initialization failed (AdaptivePoolingAllocator: call unreserveMatchingBuddy(...) if byteBuf initialization failed #16327)
- Recycler should not use thread locals unless they get cleaned up (Recycler should not use thread locals unless they get cleaned up #16315)
- OpenSSL: Don't leak OpenSslKeyManagerProvider on exception (OpenSSL: Don't leak OpenSslKeyManagerProvider on exception #16337)
- IoUring: Only complete deregistration promise once we received all co… (IoUring: Only complete deregistration promise once we received all co… #16330)
- Mark LoggingHandlerTest with @isolated to fix flaky build (Mark LoggingHandlerTest with @Isolated to fix flaky build #16338)
- Fix flaky HTTP/2 test (Fix flaky HTTP/2 test #16342)
- Fix HTTP/2 push frame test (Fix HTTP/2 push frame test #16343)
- Fix flaky RenegotiateTest (Fix flaky RenegotiateTest #16351)
- IoUring: Don't use RDHUP for non stream Channel implementations (IoUring: Don't use RDHUP for non stream Channel implementations #16345)
- SSL test: Don't depend on property value in test (SSL test: Don't depend on property value in test #16346)
- Fix flaky AbstractSingleThreadEventLoopTest (Fix flaky AbstractSingleThreadEventLoopTest #16352)
- Use headers.setInt() in HttpObjectAggregator instead of set() and use concrete version of String.valueOf in CharSequenceValueConverter (Use headers.setInt() in HttpObjectAggregator instead of set() and use concrete version of String.valueOf in CharSequenceValueConverter #16239)
- IoUring: Fix buffer leak in DatagramChannel implementation when recv … (IoUring: Fix buffer leak in DatagramChannel implementation when recv … #16359)
- Don't assume CertificateFactory is thread-safe (Don't assume CertificateFactory is thread-safe #16350)
- AdaptivePoolingAllocator: assign a more explicit value to BuddyChunk.freeListCapacity (AdaptivePoolingAllocator: assign a more explicit value to BuddyChunk.freeListCapacity #16334)
- Fix leak in SniHandlerTest (Fix leak in SniHandlerTest #16367)
- Add more diagnostic points to PooledByteBufAllocatorTest.createNewThr… (Add more diagnostic points to PooledByteBufAllocatorTest.createNewThr… #16365)
- Stabilize AbstractByteBufTest.testBytesInArrayMultipleThreads (Stabilize AbstractByteBufTest.testBytesInArrayMultipleThreads #16370)
- Avoid unnecessary Long.toString() allocation in HttpObjectDecoder (Avoid unnecessary Long.toString() allocation in HttpObjectDecoder #16344)
- Remove reference counting from size classed chunks (Remove reference counting from size classed chunks #16306)
- Stabilize AbstractByteBufTest.testToStringMultipleThreads (Stabilize AbstractByteBufTest.testToStringMultipleThreads #16380)
- Swap conditions to avoid native calls in ReferenceCountedOpenSslEngine.rejectRemoteInitiatedRenegotiation (Swap conditions to avoid native calls in ReferenceCountedOpenSslEngine.rejectRemoteInitiatedRenegotiation #16389)
- Remove duplicated contains calls in WebSockets (Remove duplicated contains calls in WebSockets #16388)
- IoUring: Reduce unnecessary io_uring_enter syscalls on non-blocking path (IoUring: Reduce unnecessary io_uring_enter syscalls on non-blocking path #16259)
- Fix NioIoHandlerTest on macOS (Fix NioIoHandlerTest on macOS #16396)
- LocalChannel: Remove dependency on SingleThreadEventExecutor (LocalChannel: Remove dependency on SingleThreadEventExecutor #16393)
- Fix autoport fetching into the existing branch (Fix autoport fetching into the existing branch #16403)
- HTTP2: Pass the correct number of arguments when logging goaway (HTTP2: Pass the correct number of arguments when logging goaway #16392)
- Revert "Fix autoport fetching into the existing branch" (Revert "Fix autoport fetching into the existing branch" #16410)
- Fix HttpObjectAggregator leaving connection stuck after 413 with AUTO (Fix HttpObjectAggregator leaving connection stuck after 413 with AUTO… #16280) (Fix HttpObjectAggregator leaving connection stuck after 413 with AUTO (#16280) #16401)
- Fix autoport fetching into the existing branch - again (Fix autoport fetching into the existing branch - again #16411)
- Fix typo in AbstractEpollChannel: 'inital' → 'initial' (Fix typo in AbstractEpollChannel: 'inital' → 'initial' #16415)
- Capture why threads get stuck in testCopyMultipleThreads0 (Capture why threads get stuck in testCopyMultipleThreads0 #16404)
- Local transport: shutdown hook should call closeNow to be conistent with what LocalIoHandler will call (Local transport: shutdown hook should call closeNow to be conistent with what LocalIoHandler will call #16406)
- Remove unnecessary array access in DefaultAttributeMap.orderedCopyOnInsert (Remove unnecessary array access in DefaultAttributeMap.orderedCopyOnInsert #16386)
- Whitelist JMH annotation processing in microbench module (Whitelist JMH annotation processing in microbench module #16428)
- Fire the QuicChannel datagram extension event before the channel becomes active (Fire the QuicChannel datagram extension event before the channel becomes active #16425)
- HTTP2: Ensure preface is flushed in all cases (HTTP2: Ensure preface is flushed in all cases #16407)
- Support QuicheQuicSslEngine hostname identification algorithm. (Support QuicheQuicSslEngine hostname identification algorithm. #16426)
- Fix client_max_window_bits parameter handling in permessage-deflate extension (Fix client_max_window_bits parameter handling in permessage-deflate extension #16424)
- Fix UnsupportedOperationException in readTrailingHeaders (Fix UnsupportedOperationException in readTrailingHeaders #16412)
- IoUring: Fix io_uring writev infinite loop on kernels without SENDMSG_ZC support (IoUring: Fix io_uring writev infinite loop on kernels without SENDMSG_ZC support #16438)
- Kqueue: Correctly handle registrations (Kqueue: Correctly handle registrations #16439)
- Kqueue: Correctly use KqueueIoOps.data() when update change list (Kqueue: Correctly use KqueueIoOps.data() when update change list #16440)
- Native transports: Fix possible fd leak when fcntl fails. (Native transports: Fix possible fd leak when fcntl fails. #16442)
- Kqueue: Fix undefined behaviour when GetStringUTFChars fails and SO_ACCEPTFILTER is supported (Kqueue: Fix undefined behaviour when GetStringUTFChars fails and SO_ACCEPTFILTER is supported #16441)
- AbstractByteBuf._internalNioBuffer() might throw exception (AbstractByteBuf._internalNioBuffer() might throw exception #16423)
- Native transports: Fix undefined behaviour when GetStringUTFChars fails while open FD (Native transports: Fix undefined behaviour when GetStringUTFChars fails while open FD #16450)
- Kqueue: Possible overflow when using netty_kqueue_bsdsocket_setAcceptFilter(...) (Kqueue: Possible overflow when using netty_kqueue_bsdsocket_setAcceptFilter(...) #16451)
- Epoll: Add null checks for safety reasons (Epoll: Add null checks for safety reasons #16454)
- DnsNameResolver: Skip test if we can not bind TCP and UDP to the same port (DnsNameResolver: Skip test if we can not bind TCP and UDP to the same port #16455)
- Epoll: Use correct value to initialize mmsghdr.msg_namelen (Epoll: Use correct value to initialize mmsghdr.msg_namelen #16460)
- Epoll: Fix support for IP_RECVORIGDSTADDR (Epoll: Fix support for IP_RECVORIGDSTADDR #16461)
- Make unpooled buffers avoid shared arenas (Make unpooled buffers avoid shared arenas #16443)
- Kqueue: Add testsuite on macOS during PR validation (Kqueue: Add testsuite on macOS during PR validation #15159)
- AdaptivePoolingAllocator: remove
ensureAccessible() call in capacity(int) method (AdaptivePoolingAllocator: remove ensureAccessible() call in capacity(int) method #16473)
- Epoll: Remove outdated docs about usage of edge-triggered (Epoll: Remove outdated docs about usage of edge-triggered #16478)
- IoUring: Correctly unregister native functions on OnLoad failure (IoUring: Correctly unregister native functions on OnLoad failure #16487)
- QUIC: Correctly handle selection of alpn protos (QUIC: Correctly handle selection of alpn protos #16484)
- QUIC: Correctly handle malloc errors during ssl context creation (QUIC: Correctly handle malloc errors during ssl context creation #16483)
- QUIC: Don'l leak memory when context is detroyed (QUIC: Don'l leak memory when context is detroyed #16481)
- Quic: Fix global reference leak (Quic: Fix global reference leak #16480)
- Log value of io.netty.ignoreExpensiveClean property during initialization (Log value of io.netty.ignoreExpensiveClean property during initialization #16479)
- Cleanup: Fix typo in method name (Cleanup: Fix typo in method name #16477)
- AdaptivePoolingAllocator: Fix assertion for size class multiple of 32 (AdaptivePoolingAllocator: Fix assertion for size class multiple of 32 #16474)
- ByteBufAllocatorAllocPatternBenchmark: Fix case sensitivity in benchmark method name check (ByteBufAllocatorAllocPatternBenchmark: Fix case sensitivity in benchmark method name check #16482)
- Avoid unpooled allocator in
CloseWebSocketFrame (Avoid unpooled allocator in CloseWebSocketFrame #16486)
- IoUring: Correctly handle the case when malloc fails during probe (IoUring: Correctly handle the case when malloc fails during probe #16501)
- IoUring: Correctly unload native stuff (IoUring: Correctly unload native stuff #16502)
- IoUring: Use correct errno value in exception (IoUring: Use correct errno value in exception #16500)
- IoUring: Use more correct bitmask check (IoUring: Use more correct bitmask check #16507)
- IoUring: Correctly handle return value of sys_io_uring_register(...) while register und unregister buffer ring (IoUring: Correctly handle return value of sys_io_uring_register(...) while register und unregister buffer ring #16508)
- IoUring: Add NULL check for GetStringUTFChars(...) (IoUring: Add NULL check for GetStringUTFChars(...) #16509)
- Reduce allocations in WebSocketServerHandshaker13 (Reduce allocations in WebSocketServerHandshaker13 #16505)
- Epoll / IoUring: setTcpMg5Sig(...) might overflow (Epoll / IoUring: setTcpMg5Sig(...) might overflow #16511)
- Fix docker image for cross-compiling (Fix docker image for cross-compiling #16522)
- Replace
ClosedChannelException with StacklessClosedChannelException (Replace ClosedChannelException with StacklessClosedChannelException #16506)
- Allocate less in QueryStringDecoder.addParam for typical use case (Allocate less in QueryStringDecoder.addParam for typical use case #16527)
- Enforce io.netty.maxDirectMemory accounting on all Java versions (Enforce io.netty.maxDirectMemory accounting on all Java versions #16489)
- JdkZlibDecoder: accumulate decompressed output before firing channelRead (JdkZlibDecoder: accumulate decompressed output before firing channelRead #16510)
- Eliminate redundant bounds checks in CompositeByteBuf accessors (Eliminate redundant bounds checks in CompositeByteBuf accessors #16525)
- Auto-port 4.2: Limit the number of Continuation frames per HTTP2 Headers (Auto-port 4.2: Limit the number of Continuation frames per HTTP2 Headers #16536)
- Merge commit from fork
- [maven-release-plugin] prepare release netty-4.2.11.Final
- [maven-release-plugin] prepare for next development iteration
- Revert "Eliminate redundant bounds checks in CompositeByteBuf accessors" (Revert "Eliminate redundant bounds checks in CompositeByteBuf accessors" #16550)
- [maven-release-plugin] prepare release netty-4.2.12.Final
- [maven-release-plugin] prepare for next development iteration
- Kqueue: sendfile EINTR doesn't advance offset — data duplication (Kqueue: sendfile EINTR doesn't advance offset — data duplication #16544)
- Replace usage of strerror with thread-safe alternative (Replace usage of strerror with thread-safe alternative #16547)
- Fix implementation of strerror_r_xsi for GNU (Fix implementation of strerror_r_xsi for GNU #16546)
- Lazy init ArrayList in DefaultHeaders.getAll (Lazy init ArrayList in DefaultHeaders.getAll #16526)
- Less logging in AWS-LC build (Less logging in AWS-LC build #16565)
- Ensure the CRYPTO_BUFFER_POOL is also freed when we fail creating the SSLContext (Ensure the CRYPTO_BUFFER_POOL is also freed when we fail creating the SSLContext #16545)
- Auto-port 4.2: Fix IndexOutOfBoundsException in StompSubframeDecoder on heartbeat (Auto-port 4.2: Fix IndexOutOfBoundsException in StompSubframeDecoder on heartbeat #16543)
- Avoid leak in PemReader on OutOfDirectMemoryError (Avoid leak in PemReader on OutOfDirectMemoryError #16551)
- IoUring: Disable test while we debug to unblock other builds (IoUring: Disable test while we debug to unblock other builds #16581)
- Include user properties and subscription IDs in MqttProperties#isEmpty (Include user properties and subscription IDs in MqttProperties#isEmpty #16575)
- Native DNS resolver: Guard against malloc failures (Native DNS resolver: Guard against malloc failures #16559)
- Auto-port 4.2: Increase timeouts for QuicChannelConnectTest (Auto-port 4.2: Increase timeouts for QuicChannelConnectTest #16578)
- Fix parsing HTTP chunks with multiple extensions (Fix parsing HTTP chunks with multiple extensions #16579)
- Bump org.codehaus.plexus:plexus-utils from 3.4.2 to 4.0.3 in /codec-native-quic (Bump org.codehaus.plexus:plexus-utils from 3.4.2 to 4.0.3 in /codec-native-quic #16572)
- Revert to PR build to Ubuntu 22.04 (Revert to PR build to Ubuntu 22.04 #16595)
- Native transports: Correctly create pipe when pipe2 is not supported (Native transports: Correctly create pipe when pipe2 is not supported #16592)
- Epoll: Cleanup code to always return negative value on failure (Epoll: Cleanup code to always return negative value on failure #16591)
- Fix component search fast path (Fix component search fast path #16548)
- Stabilize read-only toStringMultipleThreads1 (Stabilize read-only toStringMultipleThreads1 #16608)
- Stabilize more AbstractByteBufTests (Stabilize more AbstractByteBufTests #16611)
- Remove note about needing 256-bit for PQC (Remove note about needing 256-bit for PQC #16605)
- Stabilize testSessionInvalidate for Conscrypt (Stabilize testSessionInvalidate for Conscrypt #16615)
- Quic: Correctly handle SSL_CTX_new failures (Quic: Correctly handle SSL_CTX_new failures #16622)
- Make LocalIoHandle public (Make LocalIoHandle public #16621)
- Quic: Fix shadowing of variable which leads to incorrectly handling errors (Quic: Fix shadowing of variable which leads to incorrectly handling errors #16623)
- Auto-port 4.2: Use stream error for maxContentLength exceeded in InboundHttp2ToHttpAdapter (Auto-port 4.2: Use stream error for maxContentLength exceeded in InboundHttp2ToHttpAdapter #16629)
- Fix
shutdownInput bug in kqueue for empty recv buffer (Fix shutdownInput bug in kqueue for empty recv buffer #16630)
- ** fix FFM address semantics in directBufferAddress ( fix FFM address semantics in directBufferAddress #16603)**
- HTTP2: Ensure HTTP2 preface is always send as first message (HTTP2: Ensure HTTP2 preface is always send as first message #16636)
- Move Http2FrameCodecSubClassTest to correct package (Move Http2FrameCodecSubClassTest to correct package #16640)
- Kqueue: Fix usage of LOCAL_PEERPID (Kqueue: Fix usage of LOCAL_PEERPID #16637)
- Avoid ArrayQueue allocation in HttpServerCodec (Avoid ArrayQueue allocation in HttpServerCodec #16596)
- Fix file descriptor reuse bug in kqueue (Fix file descriptor reuse bug in kqueue #16650)
- Propagate exceptions from inner threads in buffer tests (Propagate exceptions from inner threads in buffer tests #16643)
- Add maxFrameLength support to ProtobufVarint32FrameDecoder (Add maxFrameLength support to ProtobufVarint32FrameDecoder #16633)
- Avoid byte[] allocation in DefaultChannelId (Avoid byte[] allocation in DefaultChannelId #16631)
- Bump BouncyCastle from 1.83 to 1.84 (Bump BouncyCastle from 1.83 to 1.84 #16660)
- HTTP2: Ensure HTTP2 preface is always send as first message (also on the server) (HTTP2: Ensure HTTP2 preface is always send as first message (also on the server) #16667)
- Update outdated codec-http3 README.md (Update outdated codec-http3 README.md #16665)
- Bump up netty-tcnative to 2.0.76.Final (Bump up netty-tcnative to 2.0.76.Final #16669)
- Fix IllegalReferenceCountException in AdaptiveByteBuf.deallocate() (Fix IllegalReferenceCountException in AdaptiveByteBuf.deallocate() #16654)
- Skip VarHandle init when unaligned access is supported (Skip VarHandle init when unaligned access is supported #16664)
- Add generic FileRegion support in io_uring stream channel (Add generic FileRegion support in io_uring stream channel #16571)
- ByteBufAllocatorAllocPatternBenchmark: Ensure each index appears exactly once in releaseIndexes (ByteBufAllocatorAllocPatternBenchmark: Ensure each index appears exactly once in releaseIndexes #16604)
- Improve flaky NioSocketChannelTest (Improve flaky NioSocketChannelTest #16679)
- Deprecate ObjectCleaner and remove usage (Deprecate ObjectCleaner and remove usage #16685)
- Update to netty-tcnative 2.0.77.Final (Update to netty-tcnative 2.0.77.Final #16687)
- Avoid TCPFastOpen in KQueueCompositeBufferGatheringWriteTest (Avoid TCPFastOpen in KQueueCompositeBufferGatheringWriteTest #16697)
- Update JUnit to 5.14.0 and fix leak scope handling (Update JUnit to 5.14.0 and fix leak scope handling #16680)
- Auto-port 4.2: Avoid NPE in JdkSslClientContext when TrustManagerFactory returns null (Auto-port 4.2: Avoid NPE in JdkSslClientContext when TrustManagerFactory returns null #16702)
- Avoid NPE in JdkSslServerContext when TrustManagerFactory returns nul… (Avoid NPE in JdkSslServerContext when TrustManagerFactory returns nul… #16700)
- IoUring: Fix incorrect assertion which was triggered when two Channel… (IoUring: Fix incorrect assertion which was triggered when two Channel… #16705)
- Epoll: Correctly delete fd from epoll if there is nothing to handle (Epoll: Correctly delete fd from epoll if there is nothing to handle #16689)
- Update many dependencies (Update many dependencies #16707)
- SCTP: Correctly handle SO_BACKLOG (SCTP: Correctly handle SO_BACKLOG #16714)
- Load BouncyCastle providers independently (Load BouncyCastle providers independently #16710)
- Add UBI9 devcontainer (Add UBI9 devcontainer #16711)
- Consolidate fake exceptions in HTTP/2 tests into Http2TestUtil (Consolidate fake exceptions in HTTP/2 tests into Http2TestUtil #16712)
- Auto-port 4.2: Fix DiscardClient hang under -Dssl by using a client SSL context (Auto-port 4.2: Fix DiscardClient hang under -Dssl by using a client SSL context #16724)
- Epoll: Use correct inital EpollIoOps (Epoll: Use correct inital EpollIoOps #16728)
- Activate noPrintGC by default (Activate noPrintGC by default #16732)
- H2: Add test for header value validation (H2: Add test for header value validation #16737)
- 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
- 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
- [maven-release-plugin] prepare release netty-4.2.13.Final
- [maven-release-plugin] prepare for next development iteration
- HTTP: Fix revapi failure introduced by 84530fa (HTTP: Fix revapi failure introduced by 84530fa81e12dcd1d42310bb20c1385cb44128d8 #16748)
- HTTP: Re-add constructor to HttpProxyHandler that was removed by mistake (HTTP: Re-add constructor to HttpProxyHandler that was removed by mistake #16747)
- Marshalling: Explicit document security requirements (Marshalling: Explicit document security requirements #16752)
- Fix io_uring op completion TRACE logging (Fix io_uring op completion TRACE logging #16755)
- Quic: Ensure writes are done before notify close promise of QuicheQui… (Quic: Ensure writes are done before notify close promise of QuicheQui… #16758)
- Avoid re-parsing openssl key material with non-cached provider (Avoid re-parsing openssl key material with non-cached provider #16759)
- Pin HTTP/RTSP version + method normalization to Locale.US (Pin HTTP/RTSP version + method normalization to Locale.US #16765)
- Fill MsgHdrMemoryArray#hdrs with null entry on release (Fill MsgHdrMemoryArray#hdrs with null entry on release #16764)
- Revapi: Use default "oldVersion" (Revapi: Use default "oldVersion" #16774)
- Adaptive: Fix concurrency issue in adaptive allocator (Adaptive: Fix concurrency issue in adaptive allocator #16767)
- Auto-port 4.2: Make bulk byte moving in ByteBuf faster (Auto-port 4.2: Make bulk byte moving in ByteBuf faster #16781)
- Pin multipart Content-Type / Content-Transfer-Encoding case folding to Locale.US (Pin multipart Content-Type / Content-Transfer-Encoding case folding to Locale.US #16768)
- Remove dead native declarations (Remove dead native declarations #16783)
- Isolate tests that modify available Security providers (Isolate tests that modify available Security providers #16793)
- Remove test annotations from a method that isn't a test (Remove test annotations from a method that isn't a test #16792)
- Enable OpenSslCachingKeyMaterialProvider to evict stale entries after cert rotation (Enable OpenSslCachingKeyMaterialProvider to evict stale entries after cert rotation #16523)
- IoUring: extend user data from short to long (IoUring: extend user data from short to long #16682)
- Revert CompositeByteBuf component search fast path (Revert CompositeByteBuf component search fast path #16811)
- HTTP2: Use 100 as default max concurrent streams setting (HTTP2: Use 100 as default max concurrent streams setting #16804)
- Fix ResumptionController wrapping (Fix ResumptionController wrapping #16815)
- Resolve all localhost addresses without querying DNS servers (Resolve all localhost addresses without querying DNS servers #16749)
- IpFilter: Fix ClassCastException caused by IpSubnetFilter if only ipv6 rules are configured but remote peer is using ipv4 (IpFilter: Fix ClassCastException caused by IpSubnetFilter if only ipv6 rules are configured but remote peer is using ipv4 #16803)
- Fix memoryAddress() for direct ByteBuffers wrapped by Unpooled without Unsafe (Fix memoryAddress() for direct ByteBuffers wrapped by Unpooled without Unsafe #16788)
- Route synchronous onLookupComplete exceptions via fireExceptionCaught (Route synchronous onLookupComplete exceptions via fireExceptionCaught #16794)
- IoUring: Stop generic FileRegion drain loop when transferred() reaches count() (IoUring: Stop generic FileRegion drain loop when transferred() reaches count() #16826)
- MQTT: Allow MQTT 5 CONNECT with password only (MQTT: Allow MQTT 5 CONNECT with password only #16833)
- Fix MQTT decoder size check after variable header replay (Fix MQTT decoder size check after variable header replay #16787)
- [maven-release-plugin] prepare release netty-4.2.14.Final
- [maven-release-plugin] prepare for next development iteration
- Fix race in io.netty.channel.uring.IoUringIoHandler.wakeup (Fix race in io.netty.channel.uring.IoUringIoHandler.wakeup #16836)
- HTTP/2: Parse request-target path like Vert.x (HTTP/2: Parse request-target path like Vert.x #16810)
- Auto-port 4.2: ChannelInitializer: correct misleading comment on exceptionCaught route (Auto-port 4.2: ChannelInitializer: correct misleading comment on exceptionCaught route #16853)
- Merge commit from fork
- Merge commit from fork
- Merge commit from fork
- Merge commit from fork
- Merge commit from fork
- Merge commit from fork
- Merge commit from fork
- Merge commit from fork
- Merge commit from fork
- Merge commit from fork
- Merge commit from fork
- Merge commit from fork
- Merge commit from fork
- Merge commit from fork
- Merge commit from fork
- Merge commit from fork
- Merge commit from fork
- Merge commit from fork
- FlowControlHandler: Suppress duplicate channelReadComplete after draining queue (FlowControlHandler and HttpContentDecompressor do not play nicely together #15053) (FlowControlHandler: Suppress duplicate channelReadComplete after draining queue (#15053) #16837)
- Merge commit from fork
- Merge commit from fork
- Merge commit from fork
- Merge commit from fork
- Pass maxAllocation to Brotli and Zstd decoders (Pass maxAllocation to Brotli and Zstd decoders #16844)
- Fix revapi warnings (Fix revapi warnings #16885)
- Fix SCTP and Redis tests (Fix SCTP and Redis tests #16893)
- Add maxWindowLog parameter to ZstdDecoder to bound memory allocation (Add maxWindowLog parameter to ZstdDecoder to bound memory allocation #16850)
- Auto-port 4.2: MQTT: Reject malformed no-payload packets with non-zero Remaining Length (Auto-port 4.2: MQTT: Reject malformed no-payload packets with non-zero Remaining Length #16890)
- [maven-release-plugin] prepare release netty-4.2.15.Final
- [maven-release-plugin] prepare for next development iteration
- Document Java 9 requirement for io_uring (Document Java 9 requirement for io_uring #16904)
- Add BlockHound exception for DnsQueryIdSpace (Add BlockHound exception for DnsQueryIdSpace #16896)
- Fix incorrect bounds in error message of HpackDecoder.setMaxHeaderListSize (Fix incorrect bounds in error message of HpackDecoder.setMaxHeaderListSize #16901)
- Add epoch-based chunk cache purge with ring buffer for thread-local reuse (Add epoch-based chunk cache purge with ring buffer for thread-local reuse #16766)
- Use Splittable/ThreadLocalRandom to generate bulk data in tests (Use Splittable/ThreadLocalRandom to generate bulk data in tests #16808)
- Auto-port 4.2: SingleThreadEventExecutor: document Throwable safety contract on run() (Auto-port 4.2: SingleThreadEventExecutor: document Throwable safety contract on run() #16909)
- Auto-port 4.2: Make HTTP/2 frame hashCode consistent with equals (Auto-port 4.2: Make HTTP/2 frame hashCode consistent with equals #16910)
- Auto-port 4.2: MQTT: Make the decodeProperties early-REPLAY check actually fire (Auto-port 4.2: MQTT: Make the decodeProperties early-REPLAY check actually fire #16919)
- IoUring: fix io_uring datagram writes with non-zero readerIndex (IoUring: fix io_uring datagram writes with non-zero readerIndex #16905)
- 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)
- IoUring: Pass IORING_ENTER_NO_IOWAIT to report accurate CPU usage (IoUring: Pass IORING_ENTER_NO_IOWAIT to report accurate CPU usage #16739)
- Avoid logging exceptions that tests ignore (Avoid logging exceptions that tests ignore #16891)
- Reject control characters at the boundary of HTTP method names (Reject control characters at the boundary of HTTP method names #16723)
- IoUring: fix TCP Fast Open initial writes with readerIndex and composites (IoUring: fix TCP Fast Open initial writes with readerIndex and composites #16929)
- Try to fix/stabilize a number of flaky tests (Try to fix/stabilize a number of flaky tests #16934)
- Fix propagation of startTls for client SslContext handlers (Fix propagation of startTls for client SslContext handlers #16931)
- Update to latest tcnative release (Update to latest tcnative release #16936)
- Move test to shared testsuite (Move test to shared testsuite #16928)
- [Refactor] Useful helper method getOrDefault & cleaner abstraction ([Refactor] Useful helper method getOrDefault & cleaner abstraction #16927)
- Make permessage-deflate server window size and memLevel configurable (Make permessage-deflate server window size and memLevel configurable #16809)
- Return early in DnsQueryContext.writeQuery when the query ID space is exhausted (Return early in DnsQueryContext.writeQuery when the query ID space is exhausted #16950)
- Fix HTTP 2 PUSH_PROMISE stream association validation (Fix HTTP 2 PUSH_PROMISE stream association validation #16952)
- Fix GZIP FEXTRA extra-field handling in JdkZlibDecoder (Fix GZIP FEXTRA extra-field handling in JdkZlibDecoder #16951)
- Http3FrameCodec handle fragmented payloads when skipping unknown frames (Http3FrameCodec handle fragmented payloads when skipping unknown frames #16960)
- Add opt-in validation of mandatory pseudo-header fields for HTTP/2 (Add opt-in validation of mandatory pseudo-header fields for HTTP/2 #16932)
- Strictly validate MQTT UTF-8 Encoded String (Strictly validate MQTT UTF-8 Encoded String #16939)
- Stop DateFormatter trailing token from running past the parse end (Stop DateFormatter trailing token from running past the parse end #16958)
- IpFilter: Deprecate constructor which use accept by default (IpFilter: Deprecate constructor which use accept by default #16961)
- Add RFC 10008 QUERY Method support (Add RFC 10008 QUERY Method support #16966)
- Correctly release and fail queued traffic-shaping writes on close (Correctly release and fail queued traffic-shaping writes on close #16959)
- Reject control characters at the boundary of the HTTP version token (Reject control characters at the boundary of the HTTP version token #16971)
- FlowControlHandler: respect auto-read when toggled while dequeueing (FlowControlHandler: respect auto-read when toggled while dequeueing #16949)
- Fix leak in ReferenceCountedOpenSslEngine.addCredential (Fix leak in ReferenceCountedOpenSslEngine.addCredential #16979)
- IdleStateHandler: reset firstWriter/ReaderIdleEvent in resetWriteTimeout/resetReadTimeout (IdleStateHandler: reset firstWriter/ReaderIdleEvent in resetWriteTimeout/resetReadTimeout #16982)
- Fix typo in AbstractSniHandler Javadoc (Fix typo in AbstractSniHandler Javadoc #16988)
- Fix client/server inconsistency in SslCredential support matrix (Fix client/server inconsistency in SslCredential support matrix #16990)
- Reconcile
AbstractCoalescingBufferQueue readableBytes when it drains, and fail stuck HTTP/2 streams instead of spinning empty DATA frames (Reconcile AbstractCoalescingBufferQueue readableBytes when it drains, and fail stuck HTTP/2 streams instead of spinning empty DATA frames #16947)
- Use Ticker in Http2MaxRstFrameListener for testability (Use Ticker in Http2MaxRstFrameListener for testability #16993)
- Reset UTF-8 decode state on CR in StompSubframeDecoder (Reset UTF-8 decode state on CR in StompSubframeDecoder #16991)
- FastLz: Guard decompression against truncated input (FastLz: Guard decompression against truncated input #17000)
- Reject non-token characters in HTTP/2 header names (Reject non-token characters in HTTP/2 header names #16762)
- Auto-port 4.2: Fix SelfSignCertificate initialization in tests (Auto-port 4.2: Fix SelfSignCertificate initialization in tests #17029)
- Enable extension of Http3ClientConnectionHandler to support higher-level protocols such as WebTransport. (Enable extension of Http3ClientConnectionHandler to support higher-level protocols such as WebTransport. #17027)
- Implement Adaptive Cumulator (Implement Adaptive Cumulator #16731)
- Allow WebSocket extension negotiation to be disabled per response (Allow WebSocket extension negotiation to be disabled per response #17030)
- Support QPACK sensitivity detector for Never Indexed header fields (Support QPACK sensitivity detector for Never Indexed header fields #17026)
- Fix maxAllocation for brotli-encoded content in HttpContentDecompressor (Fix maxAllocation for brotli-encoded content in HttpContentDecompressor #17037)
- Pin github actions to reduce risk (Pin github actions to reduce risk #17043)
- Update lz4-java to 1.11.1 (Update lz4-java to 1.11.1 #17061)
- Merge branches from forks (Merge branches from forks #17063)
- Update rust toolchain
- Update rust toolchain - add required parameters
- [maven-release-plugin] prepare release netty-4.2.16.Final
- [maven-release-plugin] prepare for next development iteration
- AsciiString.cached(String) should sanitize the provided String (AsciiString::cached should sanitize the provided String #13749) (AsciiString.cached(String) should sanitize the provided String (#13749) #17007)
- Fix deploy workflow (Fix deploy workflow #17071)
- Fix deploy snapshot
- ** Fix AsciiString.cached(String) performance regression ( Fix AsciiString.cached(String) performance regression #17074)**
- SslHandler: Fix possible buffer leak when an OOME is thrown during allocation (SslHandler: Fix possible buffer leak when an OOME is thrown during allocation #17059)
- Avoid leak presence detector in leak profile (Avoid leak presence detector in leak profile #17073)
- Add HttpContentCompressor constructor with ability to specify desired maxPipelineDepth (Add HttpContentCompressor constructor with ability to specify desired maxPipelineDepth #17068)
- IoUring: preserve readPending when rescheduling cancelled reads (IoUring: preserve readPending when rescheduling cancelled reads #17087)
- Reject negative maxOrder in PooledByteBufAllocator (Reject negative maxOrder in PooledByteBufAllocator #17093)
- Fix AdaptiveByteBuf._setLongLE calling checked setLongLE (Fix AdaptiveByteBuf._setLongLE calling checked setLongLE #17098)
- Snappy: Guard decoder against invalid chunk lengths (Snappy: Guard decoder against invalid chunk lengths #17099)
- Fix OCSP Tests (Fix OCSP Tests #17114)
- Update to latest netty-tcnative release (Update to latest netty-tcnative release #17056)
- Use safe decompressor in Lz4FrameDecoder (Use safe decompressor in Lz4FrameDecoder #17118)
- Configure TestLens for the PR builds (Configure TestLens for the PR builds #17129)
- IoUring: add SO_INQ support for Unix domain sockets (IoUring: add SO_INQ support for Unix domain sockets #17127)
- fix(mqtt): drop UNSUBACK reason codes for MQTT 3.x encoding (fix(mqtt): drop UNSUBACK reason codes for MQTT 3.x encoding #17117)
- Propagate the CI envionment variables through to the docker builds (Propagate the CI envionment variables through to the docker builds #17138)
- Codec-compression: Add decompressor API (Codec-compression: Add decompressor API #16745)
- Fix silent failures and optimize error short-circuit in multi-threaded tests (Fix silent failures and optimize error short-circuit in multi-threaded tests #17106)
- Codec-compression: Add Bzip2Decompressor (Codec-compression: Add Bzip2Decompressor #17145)
- Fix buddy cache evicting chunks with live buffers (Fix buddy cache evicting chunks with live buffers #17154)
- Codec-compression: Add Snappy frame decompressor (Codec-compression: Add Snappy frame decompressor #17153)
- Codec-compression: Add zlib decompressors (Codec-compression: Add zlib decompressors #17155)
- Codec-compression: Add Zstd decompressor (Codec-compression: Add Zstd decompressor #17152)
- Codec-compression: Add LZF decompressor (Codec-compression: Add LZF decompressor #17147)
- Codec-compression: Add BrotliDecompressor (Codec-compression: Add BrotliDecompressor #17146)
- Codec-compression: Add Lz4FrameDecompressor (Codec-compression: Add Lz4FrameDecompressor #17148)
HttpObjectEncoder / DefaultHttp2FrameWriter: fix buffer leak when a Throwable is thrown during header encoding (HttpObjectEncoder / DefaultHttp2FrameWriter: fix buffer leak when a Throwable is thrown during header encoding #17089)
- Fix direct memory OOM on low-core containers (Fix direct memory OOM on low-core containers #17166)
- IoUring: Fix the recvmmsg emulation (IoUring: Fix the recvmmsg emulation #17187)
- Avoid classloader leak via GlobalEventExecutor terminationFuture failure (Avoid classloader leak via GlobalEventExecutor terminationFuture failure #17140)
- BrotliEncoder: Prevent duplicate close scheduling (BrotliEncoder: Prevent duplicate close scheduling #17175)
- Fix JdkZlibDecompressor losing the tail of highly compressible streams (Fix JdkZlibDecompressor losing the tail of highly compressible streams #17191)
- Update compress-lzf to 1.2.1 (Update compress-lzf to 1.2.1 #17194)
- Do not write WebSocket handshake response to the tail of the pipeline (Do not write WebSocket handshake response to the tail of the pipeline #17192)
HttpServerCodec: do not consume the method queue for 1xx interim responses (HttpServerCodec: do not consume the method queue for 1xx interim responses #17182)
- Weakly reference engines from the OpenSSL engine map (Weakly reference engines from the OpenSSL engine map #17199)
- OpenSSL: Allow to obtain used named group via OpenSslSession (OpenSSL: Allow to obtain used named group via OpenSslSession #17058)
- Add
.editorconfig to enforce consistent coding style (Add .editorconfig to enforce consistent coding style #17052)
- Update surefire plugin to latest version (Update surefire plugin to latest version #17210)
- Merge changes from forks (Merge changes from forks #17213)
- [maven-release-plugin] prepare release netty-4.2.17.Final
- [maven-release-plugin] prepare for next development iteration
- Use X509ExtendedTrustManager in SSLErrorTest (Use X509ExtendedTrustManager in SSLErrorTest #17221)
- Update setup-testlens to v1.9.4 (Update setup-testlens to v1.9.4 #17223)
- Update lz4-java to 1.11.2 (Update lz4-java to 1.11.2 #17222)
- Validate chunked-must-be-last regardless of HTTP version (Validate chunked-must-be-last regardless of HTTP version #17055)
- Add system property to disable RFC 6761 localhost resolution (Add system property to disable RFC 6761 localhost resolution #17100)
- Use VarHandle JCTools queues without Unsafe (Use VarHandle JCTools queues without Unsafe #17185)
- Adjust failsafe plugin version to be in sync with surefire plugin (Adjust failsafe plugin version to be in sync with surefire plugin #17236)
- Fix NPE in AbstractNioChannel.removeReadOp() after concurrent deregistration (Fix NPE in AbstractNioChannel.removeReadOp() after concurrent deregistration #17104)
- Fix codec-native-quic published POM packaging (Fix codec-native-quic published POM packaging #17235)
- http3: marshal QPACK resume/drain to stream event loop (fixes HTTP/3 QPACK resumption callbacks can run outside the handler executor #17234) (http3: marshal QPACK resume/drain to stream event loop (fixes #17234) #17232)
- Release unsent LastHttpContent in HttpChunkedInput (Release unsent LastHttpContent in HttpChunkedInput #17240)
- Ensure OCSP is also tested with out native implementation (Ensure OCSP is also tested with out native implementation #17220)
- QUIC: Delete local references as soon as possible in the JNI layer (QUIC: Delete local references as soon as possible in the JNI layer #17258)
- Decouple QUIC token validation from ODCID derivation (Decouple QUIC token validation from ODCID derivation #17035)
- HTTP/2: Release compressors after failed headers writes (HTTP/2: Release compressors after failed headers writes #17253)
- HTTP/2: Prevent reentrant flush on writability change (HTTP/2: Prevent reentrant flush on writability change #17266)
- Respect max messages per read in LocalServerChannel (Respect max messages per read in LocalServerChannel #17255)
- Bzip2: Correctly detect overflow during block size bound check (Bzip2: Correctly detect overflow during block size bound check #17261)
- HTTP: Preserve encoder state after header encoding failures (HTTP: Preserve encoder state after header encoding failures #17271)
- HTTP/2: Drain queued frames stranded by a writability change during flush (HTTP/2: Drain queued frames stranded by a writability change during flush #17279)
- OSCP: Add clock skew tolerance to OcspServerCertificateValidator (OSCP: Add clock skew tolerance to OcspServerCertificateValidator #17277)
- Release channel when FixedChannelPool acquire is cancelled (Release channel when FixedChannelPool acquire is cancelled #17287)
- HTTP: Release content encoder after header mutation failure (HTTP: Release content encoder after header mutation failure #17292)
- Correctly mark org.jctools:jctools-core-jdk11 as non optional (Correctly mark org.jctools:jctools-core-jdk11 as non optional #17263)
- Update flatten plugin and use flattenDependecyMode direct (Update flatten plugin and use flattenDependecyMode direct #17296)
- Add a script that can download GHSA vulnerability reports (Add a script that can download GHSA vulnerability reports #17297)
- FileRegion: Remove outdated JDK upgrade warning (FileRegion: Remove outdated JDK upgrade warning #17308)
- codec-dns: Fix query OPCODE bit offset and mask (codec-dns: Fix query OPCODE bit offset and mask #17314)
- POOL: Close active unhealthy channels on release (POOL: Close active unhealthy channels on release #17306)
- QPACK: Correctly encode varint even when remainder is 128 (QPACK: Correctly encode varint even when remainder is 128 #17310)
- Install patchelf as part of awslc docker image generation (Install patchelf as part of awslc docker image generation #17317)
- Add more logging to CompositeBufferGatheringWriteTest to help diagnose flaky test (Add more logging to CompositeBufferGatheringWriteTest to help diagnose flaky test #17313)
- codec-dns: Report and allow setting full 16-bit EDNS(0) flags field (codec-dns: Report and allow setting full 16-bit EDNS(0) flags field #17325)
- Protobuf: Update protobuf-javanano to non alpha release (Protobuf: Update protobuf-javanano to non alpha release #17330)
- Port EOF handling test (Port EOF handling test #17336)
- Fix MQTT 5 properties length decoding for multi-byte Property Length (4.2 branch) (Fix MQTT 5 properties length decoding for multi-byte Property Length (4.2 branch) #17105)
- io_uring: do not release write memory that the kernel still owns (io_uring: do not release write memory that the kernel still owns #17238)
- DatagramUnicastIpv6MappedTest should explicit bind to ipv4 address to make test less flaky (DatagramUnicastIpv6MappedTest should explicit bind to ipv4 address to make test less flaky #17343)
- Auto-port 4.2: Increase timeout in test to address flakyness (Auto-port 4.2: Increase timeout in test to address flakyness #17344)
- Close Channel when connect is cancelled during resolution (Close Channel when connect is cancelled during resolution #17321)
- Channel: Add unit tests for AbstractChannel edge-case failures and buffer releases (Channel: Add unit tests for AbstractChannel edge-case failures and buffer releases #17340)
- Http2: Cleanup child channel method signatures (Http2: Cleanup child channel method signatures #17350)
- QPACK: Only call firstByteEquals(...) when we actually have readables bytes in decodeLiteralValue(...) (QPACK: Only call firstByteEquals(...) when we actually have readables bytes in decodeLiteralValue(...) #17352)
- Update to latest netty-tcnative release (Update to latest netty-tcnative release #17359)
- Update to latest netty-jni-util release (Update to latest netty-jni-util release #17363)
- Make the Linux codec-native-quic artifacts loadable on musl (Alpine) (Make the Linux codec-native-quic artifacts loadable on musl (Alpine) #17348)
- ByteBufUtil.HexUtil.HEXDUMP_TABLE array length 256*2 is enough (ByteBufUtil.HexUtil.HEXDUMP_TABLE array length 256*2 is enough #17357)
- IoUring: Expose tcp_info (IoUring: Expose tcp_info #17354)
- Auto-port 4.2: Fix JdkZlibDecoder silently truncating highly compressible streams (Auto-port 4.2: Fix JdkZlibDecoder silently truncating highly compressible streams #17370)
- Add missing EOF handling test for io_uring (Add missing EOF handling test for io_uring #17374)
- QUIC: Add missing NULL checks in native code to handle gracefully OOM (QUIC: Add missing NULL checks in native code to handle gracefully OOM #17378)
- Fix JZlibDecoder truncating highly compressible streams (Fix JZlibDecoder truncating highly compressible streams #17392)
- Fix typos in comments/javadoc (Fix typos in comments/javadoc #17390)
- Update to latest netty tcnative version (Update to latest netty tcnative version #17395)
- Update quiche to 0.29.2 (Update quiche to 0.29.2 #17393)
- 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
- MQTT: Strict bounds checking against max message size
- 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
- [maven-release-plugin] prepare release netty-4.2.18.Final
- [maven-release-plugin] prepare for next development iteration
- perf: Use LinkedHashSet to deduplicate search domains (perf: Use LinkedHashSet to deduplicate search domains #17400)
- Handle non-positive skip lengths in ByteBufInputStream (Handle non-positive skip lengths in ByteBufInputStream #17388)
- Avoid double promise allocation in SslHandler.wrap() (Avoid double promise allocation in SslHandler.wrap() #17382)
- Socket: Add half-closure tests to SocketHalfClosedTest (Socket: Add half-closure tests to SocketHalfClosedTest #17394)
- HttpUtil.getCharset() must accept whitespace before the next Content-Type parameter (HttpUtil.getCharset() must accept whitespace before the next Content-Type parameter #17386)
- codec-dns: Add SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC, ZONEMD records (codec-dns: Add SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC, ZONEMD records #17373)
- transport: Avoid io_uring completion callback allocation (transport: Avoid io_uring completion callback allocation #17457)
- QUIC: Ensure writable events reflect stream capacity (QUIC: Ensure writable events reflect stream capacity #17431)
- OcspServerCertificateValidatorTest: Fix possible leak in test (OcspServerCertificateValidatorTest: Fix possible leak in test #17469)
- Use github to download cmake and also remove tar file after unpacking (Use github to download cmake and also remove tar file after unpacking #17482)
- build: Upgrade GitHub Actions to fix Node.js 20 deprecation warnings (build: Upgrade GitHub Actions to fix Node.js 20 deprecation warnings #17484)
- HttpUtil.getMimeType() must not include whitespace before the next Content-Type parameter (HttpUtil.getMimeType() must not include whitespace before the next Content-Type parameter #17456)
- Fix buffer leak when recvmmsg returns single UDP_GRO batch (Fix buffer leak when recvmmsg returns single UDP_GRO batch #17493)
- Guard ChunkedWriteHandler.doFlush() against re-entrant invocation from user code (Guard ChunkedWriteHandler.doFlush() against re-entrant invocation from user code #17438)
- Add regression test for close() cascade reentering flush() (Add regression test for close() cascade reentering flush() #17497)
- Fix UDP_GRO segment size is lost when reading with recvmmsg (Fix UDP_GRO segment size is lost when reading with recvmmsg #17492)
- KQueueDatagramChannel: rewrite IPv4-wildcard bind to IPv6-any on dual-stack sockets (KQueueDatagramChannel: rewrite IPv4-wildcard bind to IPv6-any on dual-stack sockets #17498)
- Make CompositeBufferGatheringWriteTest robust against write/close race (Make CompositeBufferGatheringWriteTest robust against write/close race #17508)
- Add option to ignore MaxDirectMemorySize JVM argument (Add option to ignore MaxDirectMemorySize JVM argument #17177)
- Only build affected Maven modules for PR verification (Only build affected Maven modules for PR verification #17512)
- Revert "Only build affected Maven modules for PR verification (Only build affected Maven modules for PR verification #17512)"
- Add workflow that will cancel running workflows for merged PRs (Add workflow that will cancel running workflows for merged PRs #17518)
- Harden DnsNameResolverTest against transient null localAddress from TestDnsServer (Harden DnsNameResolverTest against transient null localAddress from TestDnsServer #17514)
- Fix flaky memory leak detection in OcspServerCertificateValidatorTest (#17524)
- Cache docker build images in ghcr.io to speed up CI (#17530)
- HTTP/2: Remove failed SETTINGS from ACK queue (#17387)
- Fix compilation on latest macOS 27.0 (#17529)
- Make
IoEventLoopGroup.isCompatible/isIoType side-effect free (#17544)
- Fix flaky memory leak detection in OcspServerCertificateValidatorTest (#17536)
- Reset busy counters after triggering an auto-scale-up decision (#17538)
- Http2ConnectionRoundtripTest: Reduce timing sensitivity to fix CI flakiness (#17540)
- ProtobufVarint32FrameDecoder must wait for more data when the length prefix is incomplete (#17550)
- QpackEncoder.sectionAcknowledgment must not NPE when dynamic table is disabled (#17537)
- Fix missing readable-bytes check in SmtpResponseDecoder (#17516)
- Guard against out-of-bounds reads when parsing ClientHello SNI extension (#17532)
- Fix IndexOutOfBoundsException from mismatched varint length in Http3FrameCodec (#17523)
- Fix missing readable-bytes checks in QuicHeaderParser (#17515)
- Http2: Reserve promised stream before running the request verifier (#17495)
- Fix HTTP/3 decoding of frames with zero length payloads (#17564)
- DnsAddressResolverGroupTest: Use a mock DNS server instead of resolving netty.io over the network (#17566)
- Use random generated LocalAddress in tests that use local transport (#17570)
- POOL: Release Channel when SimpleChannelPool acquire is cancelled (#17569)
- Fix missing per-entry clamp in IoUringBufferRing.useBuffer (#17568)
- Reject incomplete PUSH_PROMISE request headers when validateRequiredPseudoHeaders is enabled (#17460)
- Add regression tests for CANCEL_PUSH/GOAWAY/MAX_PUSH_ID trailing bytes (#17571)
- Use 2 EventLoops when running our tests by default (#17567)
- Fix flaky HttpToHttp2ConnectionHandlerTest.testChunkedRequestWithBodyAndTrailingHeaders (#17590)
- Http2ConnectionHandler: report at most one stream error for a CompositeStreamException (#17470)
- Http2MultiplexTransportTest: Fix possible SslContext leak in tests (#17597)
- Restore configurable ioRatio-based task scheduling in SingleThreadIoEventLoop (#17481)
- Support creating a PropertyKey that is not tied to a specific Http2Connection (#17594)
- Reset LengthFieldBasedFrameDecoder state when the frame is shorter than initialBytesToStrip (#17606)
- Auto-port 4.2: SingleThreadEventExecutor: fix race between suspend and cancellation … (#17601)
- Fix
ByteBuf.setBytes(int, ByteBuffer) when the source is the buffer's own internal NIO buffer (#17618)
- Add missing bounds check to
AdaptiveByteBuf.getBytes(...) channel variants (#17620)
- SingleThreadEventExecutor: fix remaining suspend/cancellation race (#17627)
- Update lz4-java to 1.12.0 (#17631)
- Fix connection error scope for SETTINGS_INITIAL_WINDOW_SIZE overflow issue (#17602)
- HTTP/2: Fix stream stall when toggling auto-read on a child channel (#17617)
- Run the Linux test legs on ubuntu-24.04 so io_uring buffer ring tests execute (#17637)
- Update quiche to a new version 0.30.0 (#17642)
- No need to call
clear() on ByteBuffer after AdaptiveByteBuf.internalNioBuffer() (#17619)
- Don't strand tasks when trySuspend() races with startThread() (#17608)
- Use assertInstanceOf/assertThrows instead of assertTrue/fail idioms in tests (#17633)
- PendingWriteQueue: unlink the write before failing it in removeAndFail (#17657)
- Don't lose HashedWheelTimer timeouts that race with stop() (#17610)
- Don't corrupt the pipeline when a handler context is removed twice (#17643)
- LocalChannel: complete connect() when the accepted channel dies before registration (#17656)
- Don't leak FixedChannelPool slots on unrelated IllegalArgumentException (#17609)
- Don't leak queued writes in ChunkedWriteHandler on removal or cancel (#17663)
- Honour the needle's reader index in ByteBufUtil.indexOf(ByteBuf, ByteBuf) (#17682)
- Close idle outbound HTTP/2 child channels when the parent closes (#17679)
- Only fail in ZlibDecoder when the decompression buffer is full (#17692)
- Fail pending writes of ProxyHandler when it is removed (#17691)
- Use LocalIoHandler instead of DefaultEventLoop for LocalChannel tests in codec-http2 (#17697)
- Arm force-close timeout when an inbound CLOSE frame is echoed (#17574)
- Don't count STOMP headers again when the header block is replayed (#17664)
- Add script that allows to check if a user has signed the icla (#17711)
- Complete HTTP/2 graceful close when the connection closes the last stream (#17683)
- Handle ed25519 and ed448 names in SignatureAlgorithmConverter (#17689)
- MqttDecoder accepts malformed MQTT 5 property sections and reclassifies payload bytes as properties (#17714)
- common: initialize SystemTicker at runtime in native images (#17677)
- Don't corrupt ChannelOutboundBuffer when a cancelled write makes the channel writable (#17702)
- Fail ChunkedNioFile instead of spinning when the file is shorter than requested (#17727)
- Validate bzip2 Huffman table selector index before use (#17705)
- Reset the permessage-deflate compressor after an empty final fragment (#17681)
- Only build and test the affected modules when validating PRs (#17736)
- Fix racy DnsNameResolverTest.testNegativeTtl lifecycle observer checks (#17737)
- Fix retainedSlice() of non-retained pooled derived buffers (#17759)
- Build using powershell on Windows (#17766)
- 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
- [maven-release-plugin] prepare release netty-4.2.19.Final
- [maven-release-plugin] prepare for next development iteration
- Fix sendmsg_zc leaking IovArray limits and causing empty writev submissions
- Do not let a negatively cached search domain shadow a positive one (#17623)
- Fix musl verify job (#17801)
- Reject Redis lines that start with LF (#17793)
- Choose server key types from client's signature algorithms for TLS 1.3 (#17764)
- Port 4.2: LocalChannel: Deliver data written by the peer before it closed (#17814) (#17816)
- Validate padding of HEADERS frames without priority (#17817)
- Don't spin in SslHandler.wrapMultiple(...) when the engine consumes nothing (#17728)
- Preserve invalid SNI names in
ReferenceCountedOpenSslEngine (#17781)
- Optimize redundant bounds checking in ByteBuf.setBytes (#17023)
- Respect SETTINGS_QPACK_BLOCKED_STREAMS for unacknowledged QPACK entries (#17754)
- Release the DNS response when a query future loses a cancel race (#17475)
- Lazily instantiate VarHandle JCTools queues via holder class (#17750)
- Keep reading a closed QUIC stream until the end of its input (#17755)
- Throw UnsupportedOperationException from AdaptiveByteBuf.memoryAddress() without an address (#17820)
- HAProxyMessage: validate the length of all TLV types (#17834)
- Fix HpackDynamicTable losing entries when filled to capacity (#17831)
- Make AdaptiveByteBuf.memoryAddress() faster (#17767)
- Validate bzip2 Huffman code lengths before building decode tables (#17812)
- Validate header values on DefaultHeaders.copy(), bulk add, entry setValue and ReadOnlyHttpHeaders (#17841)
- Throw DecompressionException on JdkZlib preset dictionary mismatch (#17838)
- Reject HTTP version numbers that overflow int (#17836)
- Apply certificate list size floor (#17674)
- HAProxyMessageEncoder: encode v1 PROXY UNKNOWN headers (#17837)
- HAProxyMessage: decode TLVs with an empty value at the end of the header (#17835)
- Reject invalid content-length in PUSH_PROMISE with a stream error (#17867)
- Honor maxAllocation for brotli in DelegatingDecompressorFrameListener (#17866)
- HAProxyMessageDecoder: fix v2 header framing with a non-zero reader index (#17832)
- IpSubnetFilter: Add tests for overlapping rules (#17765)
- Avoid allocating NIO buffer views in AdaptiveByteBuf.setBytes(int, ByteBuf, int, int) (#17840)
- Skip JNDI nameserver lookup on IBM i (#17872)
- Reset the h2c upgrade stream if the request can not be converted (#17869)
- Don't size ZstdDecoder output buffers from the frame content size (#17896)
- Fix NPE in Http2FrameCodec when h2c upgrade fails (#17871)
- Allow adaptive allocator magazine cleanup in BlockHound (#17849)
- GroupsConverter: fix the x25519mlkem768 group name (#17898)
- Don't count insertions twice in QPACK Insert Count Increments (#17756)
- Don't lose frames when a delimiter is split across reads (#17665)
- Register JFR events only once a Flight Recorder exists (#17614)
- Improve OcspServerCertificateValidatorTest.connectUsingHttpAndValidateCertificateUsingOcspTest() (#17913)
- Don't use the network in OcspClientTest.simpleOcspQueryTest (#17908)
- Read SOCKS5 length octets unsigned in the legacy socks decoders (#17912)
- Fix truncated output in Brotli decoders (#17870)
- Reject truncated QPACK prefixed integers in field section decode (#17778)
- Resolve malloc/free via dlsym(RTLD_DEFAULT) in CleanerJava24Linker (#17811)
- Wrap trailing ';' in Content-Disposition as ErrorDataDecoderException (#17895)
- Auto-port 4.2: Limit the number of queued tasks in NioEventLoopTest.testTaskRemovalOnShutdownThrowsNoUnsupportedOperationException (#17927)
- Avoid reflection when obtaining the process ID on Java 9+ (#17873)
- Keep WINDOW_UPDATE credit of reserved HTTP/2 streams on activation (#17611)
- IoUring: Apply IOV_MAX to each write instead of to all writes until submit (#17932)
- Add consistent TLS certificate compression support (#17548)
- Port 4.2: Don't use the network in OcspServerCertificateValidatorTest.connectUsingHttpAndValidateCertificateUsingOcspTest (#17933) (#17941)
- Avoid unnecessary String allocation in WebSocketServerProtocolHandshakeHandler (#16666)
- Port 4.2: io_uring: Don't let msgHdrMemoryArray() clear the iovecs of a pending zero-copy write (#17937) (#17946)
- Refresh CA bundle before downloading the aarch64 GCC toolchain (#17948)
- Accept empty non-final fragments in PerMessageDeflateEncoder (#17943)
- Exclude the ProcessHandle stub from Surefire in common and buffer (#17949)
- Verify toolchain downloads in release Dockerfiles against pinned SHA-256 (#17935) (#17940)
- HTTP/2: Don't pass the close promise to a deferred close (#17955)
- Port 4.2: Fix flaky Http2MultiplexTest.unhandledHttp2FramesShouldBePropagated (#17958) (#17966)
- Fix endless value iterators in ReadOnlyHttpHeaders (#17961)
- Hash all 8-byte blocks in SipHash.macHash(...) when position is not 0 (#17974)
- Fix AsciiString.contains(...) false negatives after a partial match (#17975)
- Auto-port 4.2: Increase poll timeout in HttpContentCompressorTest.testExecutorPreserveOrdering (#17976)
- Don't invert IP_MULTICAST_LOOP_DISABLED in NioDatagramChannelConfig (#17969)
- Fix flaky DatagramUnicastIPv6MappedTest on macOS (#17981)
- Add HpackDecoder test for non-token HTTP/2 header names (#17979)
- Don't drop the last character in AsciiString.trim(CharSequence) (#17968)
- Fix the region copied by Unpooled.copiedBuffer(CharSequence, int, int, Charset) (#17971)
- Port 4.1: Don't invert IP_MULTICAST_LOOP_DISABLED in NioDatagramChann… (#17991)
- Treat DATA frames on reserved HTTP/2 streams as a connection error (#17868)
- Http2: reject generic frames whose payload exceeds SETTINGS_MAX_FRAME_SIZE (#17779)
- Don't loop forever in AbstractDiskHttpData when the file is short (#17973)
- Check the second gzip magic byte in JdkZlibDecoder (#17972)
- Reject reply codes with non-digit characters in SmtpResponseDecoder (#17970)
- Return null or the default from read-only headers for invalid values (#17967)
- MqttEncoder: Reject Variable Byte Integers larger than 268435455 (#17984)
- Fix server-initiated WebSocket close handshake failing with "promise already done" (#17983)
- Fix Snappy.encode(...) for input with a non-zero reader index (#18019)
- Fill every remaining byte in the Java 8 SplittableRandom.nextBytes fallback (#18009)
- Cancel queued runs and runs of fork PRs when a PR is merged (#18026)
- Complete the TCP fast open connect before notifying the initial write (#18008)
- Only delete socket files when binding and closing UDS channels (#17980)
- Port 4.1: Complete the TCP fast open connect before notifying the initial write… (#18039)
- Use a long file offset when splicing a DefaultFileRegion with io_uring (#18018)
- Read tv_nsec from the correct offset in QuicheSendInfo.getAtNanos (#18045)
- Don't truncate the token length of QUIC Initial packets to an int (#18046)
- Port 4.1: Don't use the network in testsuite-jpms OCSPTest (#18043) (#18051)
- Don't use a negative index in QuicCodecDispatcher (#18048)
- Fix bad placement of @test
- Reject too long UDS paths in sendTo instead of truncating them (#18022)
- Fix FastLz.readU16 when the reader index is not 0 (#18054)
- Fail to encode DNS messages that are too large for TCP (#18058)
- Return the haystack's reader index from ByteBufUtil.indexOf(...) for an empty needle (#18073)
- Return -1 from StringUtil.decodeHexNibble(byte) for non-ASCII bytes (#18072)
- Fix flaky AutoScalingEventExecutorChooserFactoryTest on Windows (#18079)
- Port 4.1: Fix FastLz.readU16 when the reader index is not 0 (#18054) (#18077)
- Port 4.1: Reject too long UDS paths in sendTo instead of truncating t… (#18076)
- Don't return an entry twice when removing while iterating a primitive map (#18070)
- Mark disk-based HttpData as completed after setting empty content (#18069)
- Don't sign-extend the trailing bytes in SipHash (#18047)
- Release a SPDY DATA frame that exceeds the session window (#18089)
- Keep throttling the producer while the executor is shutting down in NioEventLoopTest
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Motivation:
We did oversize the array
Modifications:
* 2 characters per byte is enough
Result:
Cleanup
Motivation:
In our native transport we expose tcp_info but we did not in our
io_uring transport which can be a blocker for people when switch from
one to the other.
Modifications:
- Add tcpInfo methods on IoUringSocketChannel
- Add unit tests
Result:
expose tcp_info
…ible streams (#17370)
Auto-port of #17364 to 4.2
Cherry-picked commit: d71e82f
---
Motivation:
JdkZlibDecoder sizes each 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 consumed the last input bytes, so
getRemaining() is 0 and the proposed buffer has zero capacity. The
decode loop then ends, because it treats inflater.needsInput() as
"there is no output left", and the pending bytes are dropped together
with the input that is skipped afterwards. Nothing is thrown, so a peer
just sees a short body. Measured on 4.1 with raw deflate of 'a'
repeated:
size=65537 chunk=all compressed=80 decoded=65536 lost=1
size=33333 chunk=7 compressed=50 decoded=33286 lost=47
The reason this is rare is that prepareDecompressBuffer(...) only ever
grows an existing buffer and ByteBuf growth is geometric, so there is
normally slack left. That protection is gone whenever the buffer is
reallocated from null: once the decoder forwards a buffer downstream
because it reached its forward threshold, and once at the start of every
decode(...) call. Sweeping 88 payload sizes x {NONE, ZLIB, GZIP} x
{single write, 1-byte reads, 7-byte reads} x {maxAllocation 0, 1 MiB},
87 of those 1584 combinations lose bytes, and all of them are
ZlibWrapper.NONE. ZLIB and GZIP stay correct because their trailer keeps
bytes in the input buffer while output is still pending.
Modifications:
- Never propose a zero-sized output buffer: the proposed capacity is
floored at MIN_OUTPUT_BUFFER_SIZE (512 bytes). maxAllocation is still
applied by prepareDecompressBuffer(...), so a configured limit keeps
its meaning.
- Keep decoding while the last inflate(...) filled the output buffer
completely. needsInput() only says that all input bytes were consumed,
not that all output was produced. The flag is cleared as soon as a
call does not fill the buffer, so the loop cannot spin.
- Add JdkZlibTest#testHighlyCompressibleStreamIsFullyDecoded, a
parameterized test over the six (wrapper, size, chunk size) rows that
cover both places where a fresh output buffer is taken, cross-checking
each compressed fixture with the JDK inflater first.
Result:
A valid deflate stream is fully decoded regardless of its compression
ratio.
(cherry picked from commit
d71e82f)
Co-authored-by: renechoi <[email protected]>
Motivation:
6495f11 added EOF tests but did miss to
also include a test for io_uring
Modifications:
Add test for io_uring
Result:
Better test-coverage
…#17378)
Motivation:
We did not return early on NULL and so might have crashed.
Modifications:
Add early returns so the OOME can propagate to the java layer
Result:
Safetly handle OOM situations in native code
### Motivation
JZlibDecoder sizes each output buffer from the remaining compressed
input. For highly compressible raw deflate streams, JZlib can consume
the last input byte while decoded bytes remain buffered. The next
zero-sized output buffer makes inflate return Z_BUF_ERROR, and the
decoder silently emits a short body.
`JdkZlibDecoder`, in the same package, already floors that capacity at
512 bytes (#17364).
### Modification
Apply the same floor while draining JZlib. Add parameterized coverage
for the downstream-forwarding and fragmented-input paths, with each
compressed fixture cross-checked by the JDK inflater.
### Result
Raw streams of 65,537 bytes in one write and 33,333 bytes in 7-byte
chunks are fully decoded. codec-compression passes 508 tests, and
`verify` on JDK 11 is clean.
Fix minor typos in comments/javadoc/log messages. No functional change.
Co-authored-by: TianHengZhuang <[email protected]>
Motivation:
We just released a new netty-tcnative version
Modifications:
Update to 2.0.84.Final
Result:
Use latest netty tcnative release
Motivation:
Quiche 0.29.2 was released which fixes a possible crash due
use-after-free.
Modifications:
- Update to 0.29.2
- Adjust API usage
- Adjust build config / docker images to reflect changes in how quiche is build
Result:
No more possible crash
Motivation:
When HTTP/2 header value validation is not enabled, illegal characters can slip into the protocol byte stream, and cause down-stream parser-desync vulnerabilities.
Modification:
Change the default so HTTP/2 header value validation is enabled by default.
The constructors are otherwise unchanged, so the existing options and parameters to enable/disable the validation remain unchanged.
Result:
Safer default handling of HTTP/2 header values.
Motivation:
OcspClient.validateSignature() accepted any OCSP response whose signing
certificate chained to the issuer's trust anchor, without checking that a
delegated responder was actually authorized to sign OCSP responses. RFC 6960
section 4.2.2.2 requires relying parties to reject a response unless the signing
certificate either is the issuing CA itself or carries the id-kp-OCSPSigning
value in an Extended Key Usage extension. Because that check was missing, a bad
actor holding any certificate issued by the same CA could sign forged "GOOD"
responses and bypass revocation checks.
Modification:
When the OCSP response embeds a responder certificate, verify that it is
authorized to sign OCSP responses before trusting the signature. If the
responder certificate is not the issuer certificate itself (the CA-signs-
directly case allowed by RFC 6960), it must contain the id-kp-OCSPSigning
value in its Extended Key Usage extension; otherwise the response is rejected.
A malformed EKU extension is also rejected. Added tests covering a delegated
responder without the EKU (rejected), a delegated responder with the EKU
(accepted) and a response signed directly by the issuing CA (accepted).
Result:
Netty's OcspClient now enforces OCSP signing authorization as mandated by
RFC 6960, and forged responses signed by unauthorized same-CA certificates are
rejected.
Motivation:
CVE-2025-59419 added CR/LF validation for SMTP request parameters but
left the command name unvalidated: neither SmtpCommand.valueOf nor the
SmtpCommand constructor nor SmtpRequestEncoder checks it. A command name
with embedded CR/LF (e.g. "NOOP\r\nMAIL FROM:<...>") therefore encodes
to several smuggled commands on the wire — the same injection class
(CWE-93) the parent CVE set out to close, on a field it did not cover.
Modification:
- Validate CR/LF in the private SmtpCommand(AsciiString) constructor,
the single construction path for all commands (cached constants and
valueOf alike).
- Widen SmtpUtils.validateSMTPParameter to package-private for reuse.
- Add a regression test asserting valueOf rejects CR/LF in the command
name.
Result:
A command name with CR/LF can no longer be constructed, so the encoder
cannot emit smuggled commands. This completes the CVE-2025-59419 fix
across both parameters and the command-name field.
Motivation:
The max message size must be checked before we consume bytes, so we can bail out early and avoid wasting memory on messages that are ultimately rejected.
Modification:
We keep track of a running budget of remaining max message size, and reject messages with TooLongFrameException if the budget runs out.
This budget is strictly enforced, which means that even the fixed header might get rejected, and we can end up not decoding anything.
The budget is also enforced throughout all layers of decoding the variable header component of all the message types, and into each field.
Result:
It's no longer possible to cause resource exhaustion through deceptive field sizes in carefully crafted MQTT messages.
Motivation:
The chunk sizes are allowed to be followed by "bad whitespace" (either space or tab character) per RFC 9112/9110.
The proper grammar is as follows:
```
chunk = chunk-size [ chunk-ext ] CRLF
chunk-data CRLF
chunk-size = 1*HEXDIG
chunk-ext = *( BWS ";" BWS chunk-ext-name
[ BWS "=" BWS chunk-ext-val ] )
OWS = *( SP / HTAB ) ; optional whitespace
BWS = OWS ; "bad" whitespace
```
This disallows leading whitespace, and also disallows whitespace after the chunk size unless it is followed by chunk extensions.
Modification:
- Change the parsing to strictly follow the grammar laid out in RFC 9112/9110.
- Remove tests that were asserting on lenient behavior.
- Add regression tests for all possible combinations of broken parsing.
Result:
Strict adherence to the RFCs for chunk size parsing, and no possibility for parser desync issues in this area.
**Compatibility note:**
We previously allowed the chunk size to be preceded by whitespace (using `Character.isWhitespace`) but as part of following the grammar more strictly, this is no longer the case.
Leading whitespace before the chunk size now results in an error.
This leading whitespace was never allowed by any HTTP/1.1 standard, so removing this leniency will not have any impact on connections with standards-compliant peers.
…on limits
Motivation:
RedisArrayAggregator recently added maxElements and maxNestedArrayDepth limits to fix public Redis resource-exhaustion advisories. The limits are independent, but the allocator remains eager: every positive nested RESP array header creates new ArrayList<RedisMessage>(length) before any child element exists.
With the default constructor, an attacker can send nested array headers with length 1,000,000 until the default nesting limit of 1024 is reached. This can reserve up to 1,024,000,000 child slots from roughly 12 KB of RESP input. This is backing capacity, not logical list size: ArrayList(int) constructs an empty list with the specified initial capacity.
Modifications:
— added a pendingElements counter tracking the sum of declared lengths across all currently active nested AggregateStates. A new header is now rejected if it would push that total over maxElements, closing the gap where
maxElements and maxNestedArrayDepth could multiply (e.g. 1,000,000 × 1024). The counter is decremented as arrays complete and reset on error/teardown.
- Bounded eager allocation — AggregateState's backing ArrayList is now created with Math.min(length, 32) initial capacity instead of the attacker-declared length, so a single large header no longer reserves proportional backing capacity up front.
- Added tests
Result:
Enforce limits
…entificationAlgorithm
Motivation:
We need to enforce the usage of X509ExtendedTrustManager when endpointIdentificationAlgorithm is used as otherwise we will not have access to the SSLEngine when do the validation
Modifications:
Throw UnsupportedOperationException if endpointIdentificationAlgorithm is used but no X509ExtendedTrustManager is provided
Result:
Correctly be able to validate algorithm
…, overriding the request-target authority
Motivation:
HttpConversionUtil.toHttp2Headers(...) translates an HTTP/1 request with an absolute-form request-target and a conflicting Host header into HTTP/2 using the Host header as :authority.
Modifications:
- Fix code to give absolute-form preference
- Add unit tests
Result:
Correctly handle authority
…tp2 and codec-http3:
Motivation:
HttpConversionUtil converts an HTTP/2/3 CONNECT request to an HTTP/1.x object using :authority as the request
URI (unchanged, correct for regular CONNECT), but silently dropped the :protocol and :path pseudo-headers as unrecognized
pseudo-headers — making an Extended CONNECT request indistinguishable from a regular CONNECT tunnel once converted.
Modifications:
- Added a CONNECT_REQUEST_HEADER_TRANSLATIONS map (used only when the request method is CONNECT) that additionally
translates :path → x-http2-path/x-http3-path and :protocol → x-http2-protocol/x-http3-protocol extension headers. Regular
CONNECT requests are unaffected (no :protocol/:path present, so nothing changes). The new PROTOCOL extension header is also
added to the HTTP→HTTP2/3 blacklist so it can't leak back as a literal header on the reverse conversion path. This
automatically covers all conversion entry points (toHttpRequest, toFullHttpRequest, and the frame-to-object adapters
Http2StreamFrameToHttpObjectCodec/InboundHttp2ToHttpAdapter/Http3FrameToHttpObjectCodec) since they all funnel through
addHttp2ToHttpHeaders/addHttp3ToHttpHeaders.
- Add unit tests
Result:
Correctly handle Extended CONNECT when translate
…d Host-controlled :authority
Motivation:
Netty's HTTP/1-to-HTTP/3 conversion does not special-case HTTP/1 CONNECT authority-form request-targets.
Modifications:
- Special handle CONNECT requests
- Add unit tests
Result:
Correct transform CONNECT requests
…d Host-controlled :authority
Motivation:
Netty's HTTP/1-to-HTTP/2 conversion does not special-case HTTP/1 CONNECT authority-form request-targets.
Modifications:
- Special handle CONNECT requests
- Add unit tests
Result:
Correct transform CONNECT requests
Motivation:
We need to ensure we not silently strip trailing control bytes.
Modifications:
- Remove striping
- Add unit tests
Result:
Correctly parse RTSP methods
Motivation:
PR #16881 introduced releaseDeep(...) (recursive release of a TLV tree) and converted the flattened-list call sites to release nested PP2_TYPE_SSL TLVs correctly.
However the inner catch inside readNextTLV still calls the flatten-unaware releaseTlvs(encapsulatedTlvs). There, encapsulatedTlvs is a non-flattened list of a
single SSL TLV's direct children, where a child may itself be an HAProxySSLTLV holding grandchildren.
Modifications:
- Correctly call releaseDeep(...)
- Add unit test
Result:
No more memory leak
Motivation:
SmtpResponseDecoder buffers every continuation line until the
terminating line arrives, with no limit on the total. maxLineLength
is a per-line bound only.
Modification:
Add a maxResponseSize limit, defaulting to 64 KiB and configurable
via a new constructor. Exceeding it fails with TooLongFrameException
and discards the buffered lines.
Result:
Memory used while decoding a multi-line SMTP response is bounded.
Motivation:
HTTP/1.1 request framing depends on all peers interpreting Transfer-Encoding consistently.RFC 9112 requires chunked to be the final transfer coding for requests. Netty's existing validation could mis-handle some Transfer-Encoding forms, including multiple header fields or values whose last token only looked like chunked by suffix. Invalid request framing could also fall back to Content-Length.
Modification:
Validate the final Transfer-Encoding token using the header field order and exact comma-token matching. Reject HTTP/1.1 requests that contain Transfer-Encoding but do not have chunked as the final transfer coding. Keep the existing Content-Length handling for valid chunked Transfer-Encoding requests.
Add focused tests for valid multi-line Transfer-Encoding, invalid non-final chunked, pseudo-suffix values, non-chunked request Transfer-Encoding, and malformed Transfer-Encoding with Content-Length.
Result:
Invalid request Transfer-Encoding framing is rejected instead of being decoded with anambiguous message length. Valid requests where chunked is the final transfer coding continue to be accepted.
…length causes memory-exhaustion DoS
Motivation:
Netty's HTTP/3 QPACK encoder-stream instruction decoder (QpackEncoderHandler, a ByteToMessageDecoder installed on the peer-initiated unidirectional QPACK encoder stream, type 0x02)
accepts an attacker-declared string-literal length of up to ~2 GiB with no per-instruction/per-literal length cap and no cumulation-size limit. A remote, unauthenticated peer can
force unbounded per-connection heap accumulation and a large new byte[length] allocation, leading to OutOfMemoryError and denial of service on the default HTTP/3 server.
Modifications:
- Use the maxTableCapacity to limit the string literal as there is no way to store it if it exceed the capacity in the first place.
- Add unit test
Result:
No more risk of DOS
Motivation:
We need to enforce a limit so we will never end up buffering for ever and so cause OOME
Modifications:
- Add same limit as in Hpack
- Add unit tests
Result:
Correctly limit prefix decoding
Motivation:
We need to limit the tracking of outstanding sections to guard against DOS. Once the limit is reached we will just fallback to only use the static table until we were able to acknowledge some.
Modifications:
- Fallback to static table only once we have too many outstanding sections that are not acknowledged yet
- Add unit tests
Result:
Guard against DOS
Motivation:
`keyLength`, `extrasLength` and `totalBodyLength` are unsigned in the
binary memcache protocol, but the decoder framed the body with the signed
Java values it read them into. An `extrasLength` of `0x80` or a
`keyLength` of `0x8000` left the extras or key unread and made the value
length too large, so the decoder read the following message as part of
this message's value. The lengths were also never checked against each
other, so a header announcing a 20 byte key in a 4 byte body read the key
past the end of the message and exposed part of the next header.
Modification:
- Interpret `extrasLength` and `keyLength` as unsigned where they frame
the body. Both fields already hold every bit of the wire value, so no
signature change is needed.
- Add `validateHeader()`, which fails the message with a
`CorruptedFrameException` if `totalBodyLength` is negative or smaller
than extras plus key. It is called from `decode()` rather than
`decodeHeader()` so that subclasses are covered as well.
Result:
The decoder stays in sync for all header length values and unframable
headers are rejected instead of shifting every following message.
Added twelve test cases to `BinaryMemcacheDecoderTest`, run against both the
request and the response decoder as the framing logic is shared. All
twelve fail before this change.
…ode loop DoS
Motivation:
We did not guard against a too large content-length and so could end up in an infinite loop
Modifications:
- Add guard
- Add unit test
Result:
Correctly reject too large content-length
Motivation:
The ":authority" pseudo-header and the "host" header can both
carry the authority of a request and need to be consistent.
Modifications:
- Validate that ":authority" and "host" contain the same value and that
"host" is not repeated with different values
- Deduplicate "host" when translating to HTTP/1.x
- Add unit tests
Result:
Correctly validate the authority of a request
…17967)
Motivation:
`HttpHeaders.getInt(name)` and `getShort(name)`, and the typed getters
of `Headers`, are documented to return `null`, and the overloads with a
default value the default value, when the header value can't be
converted. `DefaultHeaders` catches conversion failures since #7710, but
`ReadOnlyHttpHeaders.getInt(...)` and `getShort(...)`, and
`ReadOnlyHttp2Headers.getByte(...)`, `getChar(...)`, `getShort(...)`,
`getInt(...)`, `getLong(...)`, `getFloat(...)` and `getDouble(...)` let
the `NumberFormatException`, or the `IndexOutOfBoundsException` of
`getChar(...)` for an empty value, escape to the caller.
For example, `HttpToHttp2ConnectionHandler` reads
`x-http2-stream-weight` with `getShort(name, defaultValue)`. A request
with `x-http2-stream-weight: high` is written with the default weight
when it uses `DefaultHttpHeaders`, but with `ReadOnlyHttpHeaders` the
write fails with a `NumberFormatException` and the handler sends GOAWAY.
Modification:
Catch `RuntimeException` around the conversion in these getters, like
`DefaultHeaders` does. `getTimeMillis(...)` is covered by #17965. Add
tests for values that can't be converted.
Result:
The getters of `ReadOnlyHttpHeaders` and `ReadOnlyHttp2Headers` return
`null` or the default value for a value that can't be converted, like
`DefaultHttpHeaders` and `DefaultHttp2Headers`.
Headers `x-count: abc` and `x-empty:` (empty value);
`DefaultHttpHeaders` and `DefaultHttp2Headers` return `null` or `-1` for
all of these. Then a request with `x-http2-stream-weight: high` written
through `HttpToHttp2ConnectionHandler`:
Before:
```
ReadOnlyHttpHeaders.getInt(x-count, -1) threw java.lang.NumberFormatException: For input string: "abc"
ReadOnlyHttpHeaders.getShort(x-count) threw java.lang.NumberFormatException: For input string: "abc"
ReadOnlyHttp2Headers.getChar(x-empty) threw java.lang.IndexOutOfBoundsException: index: 0 must be in the range [0,0)
ReadOnlyHttp2Headers.getLong(x-count) threw java.lang.NumberFormatException: abc
ReadOnlyHttp2Headers.getDouble(x-count, -1) threw java.lang.NumberFormatException: For input string: "abc"
HttpToHttp2ConnectionHandler write with DefaultHttpHeaders: success=true, first outbound frame type=1 (HEADERS)
HttpToHttp2ConnectionHandler write with ReadOnlyHttpHeaders: success=false cause=java.lang.NumberFormatException: For input string: "high", first outbound frame type=7 (GOAWAY)
```
After:
```
ReadOnlyHttpHeaders.getInt(x-count, -1) = -1
ReadOnlyHttpHeaders.getShort(x-count) = null
ReadOnlyHttp2Headers.getChar(x-empty) = null
ReadOnlyHttp2Headers.getLong(x-count) = null
ReadOnlyHttp2Headers.getDouble(x-count, -1) = -1.0
HttpToHttp2ConnectionHandler write with DefaultHttpHeaders: success=true, first outbound frame type=1 (HEADERS)
HttpToHttp2ConnectionHandler write with ReadOnlyHttpHeaders: success=true, first outbound frame type=1 (HEADERS)
```
The new tests fail before the change. `codec-http` and `codec-http2`
tests pass.
---------
Co-authored-by: Norman Maurer <[email protected]>
)
Motivation:
The MQTT remaining length, the properties length and the Subscription
Identifier property are Variable Byte Integers which use at most four
bytes and so can not be larger than 268,435,455.
MqttEncoder never checked this. getVariableLengthInt() reported four
bytes
for every value above 2,097,151 while writeVariableLengthInt() wrote as
many bytes as the value needed. For a larger value the output buffer was
sized too small and a fifth length byte was written, so the packet was
not framed correctly. A computed size that overflowed int was handled
as a negative value and encoded the same way.
Modifications:
- Throw an EncoderException from getVariableLengthInt() and
writeVariableLengthInt() if the value is negative or larger than
268,435,455.
- Compute the CONNACK fixed header size via getVariableLengthInt() so
the
check also runs before the output buffer is allocated.
- Add unit tests.
Result:
MqttEncoder no longer produces packets with an invalid Variable Byte
Integer.
…already done" (#17983)
Motivation:
Since #17574, `WebSocketProtocolHandler.closeSent(promise)` cascades the
outcome of an already recorded close promise onto the new one. When the
server initiates the close handshake by writing a `CloseWebSocketFrame`
and the peer responds with its own close frame,
`WebSocketServerProtocolHandler.decode()` creates a new promise, passes
it to `closeSent()` and then to `WebSocketServerHandshaker.close()`.
As our own close frame was already written, the new promise is completed
immediately, so the write in `close()` fails with
`IllegalArgumentException: promise already done` and the close handshake
fails.
Modification:
If a close frame was already sent (or is still being sent) when a close
frame is received, don't echo another close frame (as required by
RFC 6455) but close the connection once our own close frame was written.
The force-close timeout still applies. Add tests for a server-initiated
close handshake, including the reproducer from the issue, and adjust
the simultaneous close test as no second close frame is written anymore.
Result:
Fixes #17776.
A server-initiated WebSocket close handshake completes correctly again.
Motivation:
`Snappy.encode(in, out, length)` starts at `in.readerIndex()` and works
with absolute buffer indices, but compares them with `length` as if the
input started at index 0. If the reader index is not 0, the encoder
stops early. The compressed block declares `length` bytes in its
preamble but contains fewer bytes, or none at all. `SnappyFrameEncoder`
is not affected because it always passes a slice from `readSlice(...)`.
Code that calls the public `Snappy.encode(...)` method directly is
affected.
Modification:
- Compute the end of the input as `readerIndex + length` and use it
instead of `length` for all bounds checks in `Snappy.encode(...)`.
- Add a test that encodes the same data with a non-zero reader index,
checks the output is identical to the output for reader index 0, and
checks that it decodes correctly.
Result:
`Snappy.encode(...)` produces the same output whatever the reader index
of the input buffer.
…llback (#18009)
Motivation:
On Java versions before 10,
`PlatformDependent.splittableRandomNextBytes(SplittableRandom, byte[])`
fills the array itself instead of calling `SplittableRandom.nextBytes`.
The loop for the bytes after the last full 8-byte block increments `i`
both in its body (`data[i++] = ...`) and in its update, so every other
remaining byte is skipped and stays `0`. For a 7-byte array, bytes 1, 3
and 5 are never written; for any length that is not a multiple of 8, up
to 3 bytes stay zero. On Java 10+ `SplittableRandom.nextBytes` is used
and every byte is filled, so the two paths disagree for the same seed.
Modification:
- Increment `i` only in the loop update.
- Move the fallback into a package-private
`splittableRandomNextBytesFallback` so it can be tested on any Java
version, and add
`PlatformDependentTest.testSplittableRandomNextBytesFallbackFillsEveryByte`,
which compares it with the layout of `SplittableRandom.nextBytes` (one
`nextLong()` per 8 bytes, low byte first, one more for the rest) for
lengths 0 to 64.
Result:
The fallback fills every byte and produces the same bytes as
`SplittableRandom.nextBytes` for the same seed. In the netty repository
the method is used to generate random payloads in tests and the
testsuite, which on Java 8 had zero bytes in their tails.
Motivation:
#17518 added a workflow that cancels the runs of a PR once it is merged,
but it does not free up the runners in all cases. It only looks at runs
that are `in_progress`, so runs that are still waiting for a runner are
never cancelled. It is triggered by `pull_request`, where the
`GITHUB_TOKEN` is read-only for PRs from forks, so cancelling fails for
them with a 403, and it does not request `actions: write`. It also does
not paginate, a single failed cancel (for example a 409 for a run that
just completed) aborts the remaining ones, and it could cancel the runs
of another PR that uses the same head commit.
Cancelling "Build PR" also triggers "PR Reports" through `workflow_run`,
which then runs on a merged PR only to find cancelled runs.
Modification:
- Cancel every run of the head commit that has not completed yet
(`queued`, `in_progress`, `waiting`, `pending` and `requested`).
- Use `pull_request_target` and request `actions: write`. The workflow
does not check out or run any code of the PR, it only uses the event
payload. As the workflow file is taken from the base branch it needs to
exist on every branch we merge PRs into.
- Paginate, ignore failures to cancel a single run, only consider runs
triggered by `pull_request` and skip runs that are attached to a
different PR.
- Skip the "PR Reports" job if the "Build PR" run was cancelled.
Result:
Runners are freed up as soon as a PR is merged, also for queued runs and
for PRs from forks, and no report job is started for the cancelled runs.
…#18008)
Motivation:
When the initial data of a `TCP_FASTOPEN_CONNECT` is sent as part of the
connect, epoll, kqueue and io_uring remove the written bytes from the
`ChannelOutboundBuffer` before the connect promise is fulfilled. The
write promise of the initial data is therefore notified while the
channel is not active yet. A listener that writes and flushes fails with
a `NotYetConnectedException`, and a listener that closes the channel
fails the connect although it succeeded. kqueue even notifies the write
promise when `connectx(...)` only started the connect, before it is
known if the connect succeeds.
Modification:
- epoll and kqueue: remember the bytes that were sent by
`TCP_FASTOPEN_CONNECT` and only remove them once the connect promise
was fulfilled, or before the outbound buffer is written, closed or
shut down. If the connect fails they are not removed, so the write
fails.
- io_uring: call `connectComplete(...)` before `removeBytes(...)`, and
set `WRITE_SCHEDULED` until the bytes were removed so a flush that is
triggered by `channelActive()` does not send the initial data a second
time.
- Write what is left of the initial data once the connect is complete.
- Add `SocketConnectTest.testWriteFromFastOpenInitialDataListener`,
which runs for all transports that support TCP fast open.
Result:
Listeners of the initial write see an active channel when the initial
data was sent as part of the connect.
Motivation:
`bindDomainSocket` unconditionally called `unlink(2)` on the bind path
before `bind(2)`, and the epoll, kqueue and io_uring server domain
socket channels called `File.delete()` on the path when closing. An
application that derives the path from external input could therefore
have any file it can delete removed by binding or closing a channel.
Only a stale socket left by a previous run should be cleaned up.
`FileDescriptor.from(...)` opens the file with `O_CREAT | O_TRUNC` and
mode `0666`, but its javadoc did not say so.
Modification:
- In `bindDomainSocket`, `lstat(2)` the path and only `unlink(2)` it if
it is a socket. Anything else is left alone and `bind(2)` fails with
`EADDRINUSE`.
- Add `UnixChannelUtil.deleteDomainSocketFile(String)`, which deletes a
path only if it is not a regular file, directory or symbolic link and
never follows symbolic links, and use it in the server domain socket
channels of all three transports.
- Document that `FileDescriptor.from(...)` truncates or creates the
file.
- Add tests to `SocketTest` for binding over a regular file, binding
over a stale socket and `deleteDomainSocketFile`.
Result:
Binding to or closing a server domain socket channel no longer removes
regular files, directories or symbolic links.
…tial write… (#18039)
… (#18008)
Motivation:
When the initial data of a `TCP_FASTOPEN_CONNECT` is sent as part of the
connect, epoll, kqueue and io_uring remove the written bytes from the
`ChannelOutboundBuffer` before the connect promise is fulfilled. The
write promise of the initial data is therefore notified while the
channel is not active yet. A listener that writes and flushes fails with
a `NotYetConnectedException`, and a listener that closes the channel
fails the connect although it succeeded. kqueue even notifies the write
promise when `connectx(...)` only started the connect, before it is
known if the connect succeeds.
Modification:
- epoll and kqueue: remember the bytes that were sent by
`TCP_FASTOPEN_CONNECT` and only remove them once the connect promise was
fulfilled, or before the outbound buffer is written, closed or shut
down. If the connect fails they are not removed, so the write fails.
- io_uring: call `connectComplete(...)` before `removeBytes(...)`, and
set `WRITE_SCHEDULED` until the bytes were removed so a flush that is
triggered by `channelActive()` does not send the initial data a second
time.
- Write what is left of the initial data once the connect is complete.
- Add `SocketConnectTest.testWriteFromFastOpenInitialDataListener`,
which runs for all transports that support TCP fast open.
Result:
Listeners of the initial write see an active channel when the initial
data was sent as part of the connect.
#18018)
Motivation:
`IoUringFileRegion.spliceToPipe()` casts the file offset `position() +
transferred()` to `int` when it submits the splice from the file to the
pipe. It also stores the number of transferred bytes in an `int`. As a
result, the io_uring transport mishandles three kinds of
`DefaultFileRegion`:
- a region that starts at or beyond 2 GiB fails with `io_uring
splice(..) failed with error(-22): Invalid argument`, because the offset
is negative;
- a region that starts at or beyond 4 GiB sends the bytes from the wrong
offset of the file, with no error (the offset wraps around);
- a region larger than 2 GiB, for example a whole 2.25 GiB file, stops
after 2^31 bytes with `EINVAL`.
The NIO and epoll transports send the same regions correctly.
Modification:
- Store `transferred` as a `long` and pass the file offset to the splice
as a `long`. `IoUringIoOps.newSplice(...)` already takes a `long`
offset.
- Cap the length of a single splice at `Integer.MAX_VALUE`. The
following splices send the rest, the same way they handle any short
splice.
- Add a test to `IoUringFileRegionTest` that sends regions beyond 2 GiB
and beyond 4 GiB of a sparse file. The file needs only a few KiB of
disk.
Result:
The io_uring transport correctly sends `DefaultFileRegion`s that start
beyond 2 GiB or are larger than 2 GiB.
---------
Co-authored-by: Norman Maurer <[email protected]>
…8045)
Motivation:
`QuicheSendInfo.getAtNanos(...)` reads the `tv_sec` and `tv_nsec` fields
of the `timespec` in `quiche_send_info`. Both reads used
`Quiche.TIMESPEC_OFFSETOF_TV_SEC`, so the nanoseconds were taken from
the
seconds field and the result was `sec * 1e9 + sec`.
Modification:
Use `Quiche.TIMESPEC_OFFSETOF_TV_NSEC` when reading `nsec`.
Result:
`getAtNanos(...)` returns the time from both fields of the `timespec`.
The
method has no callers today, so behavior does not change yet.
…8046)
Motivation:
The token length of an Initial packet is a variable-length integer that
can be up to 62 bits wide (RFC 9000 sections 16 and 17.2.2).
`QuicHeaderParser.sliceToken(...)` cast the decoded value to an `int`
before validating it against the readable bytes. A length of 2^32 + k
was
truncated to k and accepted as a k-byte token, and a length of 2^31 or
more that fits into 32 bits became negative, which passed the check and
made `slice(...)` throw an `IllegalArgumentException` instead of a
`QuicException`.
Modification:
Keep the token length as a `long`, validate it against the readable
bytes
and only then narrow it to an `int`. `checkReadable(...)` now takes the
needed length as a `long`. Add `QuicHeaderParserTest`.
Result:
Initial packets with a token length that does not fit into the packet
are
rejected with a `QuicException` (`PROTOCOL_VIOLATION`) instead of being
parsed with a truncated token.
---------
Co-authored-by: Violeta Georgieva <[email protected]>
…18051)
Motivation:
`OCSPTest.testSimpleQueryTest` connected to `apple.com:443` and
validated the certificate against Apple's real OCSP responder. This
makes the test flaky whenever the network is unreliable, which regularly
happens on CI. When no verdict arrives the test ignored the result of
`CountDownLatch.await(...)` and only failed with a bare `expected:
<true> but was: <false>`, which hides the real cause.
Modification:
Run the test against a local TLS server and a local HTTP OCSP responder
on 127.0.0.1 that serves a signed `good` response. The CA and server
certificate are generated with `CertificateBuilder`, with an AIA
extension pointing at the local responder. Assert the result of the
latch wait and include any exception from the pipeline in the failure
message. Add `requires org.bouncycastle.pkix` and `requires
org.bouncycastle.provider` to the test module as the test now uses
`org.bouncycastle.asn1.x509` and `org.bouncycastle.cert`.
Result:
`OCSPTest` only talks to localhost and no longer depends on external
hosts.
Motivation:
`QuicCodecDispatcher.decodeIndex(...)` is documented to return `-1` if
decoding was not successful. `channelRead(...)` only checked that the
index is smaller than the size of the `contextList`, so a subclass that
returns `-1` made `contextList.get(-1)` throw an
`ArrayIndexOutOfBoundsException` instead of forwarding the packet.
Modification:
Only look up the `ChannelHandlerContext` if the index is not negative.
Otherwise the packet is forwarded like any other packet that can not be
dispatched. Add a test.
Result:
A subclass that returns `-1` from `decodeIndex(...)` works as
documented.
Motivation:
`sendToDomainSocket`, `sendToAddressDomainSocket` and
`sendToAddressesDomainSocket` silently truncate a path that is longer
than `sizeof(sun_path)`. The datagram is then sent to a different
address than the one the caller asked for, or fails with an unrelated
error. `bindDomainSocket` and `connectDomainSocket` already reject such
a path with `ENAMETOOLONG`.
Modification:
Return `-ENAMETOOLONG` from `_sendToDomainSocket` and
`netty_unix_socket_sendToAddressesDomainSocket` if the path is longer
than `sizeof(sun_path)`, like `bindDomainSocket` and
`connectDomainSocket` do. Add
`SocketTest.testSendToDomainSocketWithTooLongPath`.
Result:
Sending to a UDS path that does not fit into `sun_path` fails with an
`IOException` ("File name too long") instead of using a truncated path.
The test module compiles. The native code and the new test have not been
run yet.
Motivation:
`FastLz.readU16(...)` guards against reading past the end of the buffer
with `offset + 1 >= data.readableBytes()`. The offset is an absolute
index but `readableBytes()` is relative to the reader index, so for a
buffer with a reader index greater than 0 the guard is true for every
offset and only a single byte is read. `FastLzFrameEncoder` compresses
chunks starting at `in.readerIndex()`, so this happens for every chunk
after the first one of a message larger than 65535 bytes.
For level 2 the run check `readU16(ip - 1) == readU16(ip + 1)` then only
compares one byte, a run of three bytes is emitted although the third
byte is not the same, and the data is silently corrupted when it is
decompressed. Level 1 only uses the value for the hash and is not
affected. `LEVEL_AUTO` selects level 1 for chunks of at most 65535
bytes, so only an explicitly configured level 2 is affected.
Modification:
Compare the offset with `writerIndex()`, which is the absolute end of
the
data. Add a test that compresses and decompresses data at different
reader
indexes.
Result:
FastLz level 2 round-trips independent of the reader index of the input.
Motivation:
DNS messages that are sent over TCP are prefixed with their length which
is encoded in two bytes (RFC 7766 section 8). `TcpDnsQueryEncoder` and
`TcpDnsResponseEncoder` wrote the length with `setShort(...)`, which
only
keeps the lower 16 bits. For a message larger than 65535 bytes the
prefix
was silently truncated, so the peer read a frame that is too short and
parsed the remaining bytes as the start of the next frame.
Modification:
Throw an `IllegalArgumentException`, which is wrapped into an
`EncoderException`, if the message does not fit into the two byte
length,
and release the buffer in `TcpDnsResponseEncoder` in this case. Add
tests
for messages that are too large and for the largest message that fits.
Result:
An oversized DNS message fails the write instead of corrupting the TCP
stream.
…an empty needle (#18073)
Motivation:
`ByteBufUtil.indexOf(ByteBuf needle, ByteBuf haystack)` returns the
index of the needle in the haystack, starting at the haystack's reader
index. For an empty needle it returns `0`, which is before the readable
bytes when the haystack's reader index is not 0:
```java
ByteBuf haystack = Unpooled.copiedBuffer("abc", CharsetUtil.US_ASCII);
haystack.readerIndex(1);
ByteBufUtil.indexOf(Unpooled.EMPTY_BUFFER, haystack); // 0, expected 1
```
Before the Two-Way implementation (#11367, 4.1.66.Final) it returned
`haystack.readerIndex()`. Netty's own callers never pass an empty needle
(`DelimiterBasedFrameDecoder` rejects empty delimiters), so this only
affects users of the public method.
Modification:
- Return `haystack.readerIndex()` for an empty needle.
- Add `ByteBufUtilTest.testIndexOfEmptyNeedle`.
Result:
An empty needle is found at the haystack's reader index.
…18072)
Motivation:
`StringUtil.decodeHexNibble(byte)` uses the byte directly as an index
into `HEX2B`, so a byte >= `0x80` is a negative index and the method
throws an `ArrayIndexOutOfBoundsException` instead of returning `-1`.
`HttpObjectDecoder` uses it to parse the chunk size, so a chunk size
line such as `1\xff` fails the content with an
`ArrayIndexOutOfBoundsException` instead of the `NumberFormatException`
that other invalid characters produce. The request is rejected either
way, but the cause looks like an internal error. This has been the case
since the byte variant was added in #12321 (4.1.88.Final).
Modification:
- Mask the byte with `0xFF` before the table lookup.
- Add tests to `StringUtilTest` and `HttpRequestDecoderTest`.
Result:
`decodeHexNibble(byte)` returns `-1` for all non-hex bytes, and a chunk
size with a non-ASCII byte fails with a `NumberFormatException`.
`decoderResult().cause()` of the chunk for these chunk size lines,
decoded with `HttpRequestDecoder`:
```
chunk size before after
1g NumberFormatException: Invalid character in chunk size (unchanged)
1\xff ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 65536 NumberFormatException: Invalid character in chunk size
\xb0 ArrayIndexOutOfBoundsException: Index -80 out of bounds for length 65536 NumberFormatException: Invalid character in chunk size
```
Both new tests fail before the change and pass after it. `common` and
`codec-http` tests pass.
Motivation:
`testSmarterPickingConsolidatesWorkOnActiveExecutor` failed on the
windows-x86_64 CI job with `expected: <1> but was: <2>`. The test
submits empty tasks to the single active executor. On platforms with a
coarse `System.nanoTime()` (e.g. Windows) such a task can be measured as
taking 0ns, so the executor reports no active time. The
`UtilizationMonitor` then falls back to treating the recent activity as
utilization for the rest of the window, sees the executor as busy for
consecutive cycles and scales the group up.
Modification:
Let each task of the trickle do about 1ms of busy work so that a
non-zero active time is always recorded. This is still far below the
scale up threshold of the 50ms window.
Result:
The test no longer depends on the resolution of `System.nanoTime()`.
…18077)
Motivation:
`FastLz.readU16(...)` guards against reading past the end of the buffer
with `offset + 1 >= data.readableBytes()`. The offset is an absolute
index but `readableBytes()` is relative to the reader index, so for a
buffer with a reader index greater than 0 the guard is true for every
offset and only a single byte is read. `FastLzFrameEncoder` compresses
chunks starting at `in.readerIndex()`, so this happens for every chunk
after the first one of a message larger than 65535 bytes.
For level 2 the run check `readU16(ip - 1) == readU16(ip + 1)` then only
compares one byte, a run of three bytes is emitted although the third
byte is not the same, and the data is silently corrupted when it is
decompressed. Level 1 only uses the value for the hash and is not
affected. `LEVEL_AUTO` selects level 1 for chunks of at most 65535
bytes, so only an explicitly configured level 2 is affected.
Modification:
Compare the offset with `writerIndex()`, which is the absolute end of
the data. Add a test that compresses and decompresses data at different
reader indexes.
Result:
FastLz level 2 round-trips independent of the reader index of the input.
#18076)
…hem (#18022)
Motivation:
`sendToDomainSocket`, `sendToAddressDomainSocket` and
`sendToAddressesDomainSocket` silently truncate a path that is longer
than `sizeof(sun_path)`. The datagram is then sent to a different
address than the one the caller asked for, or fails with an unrelated
error. `bindDomainSocket` and `connectDomainSocket` already reject such
a path with `ENAMETOOLONG`.
Modification:
Return `-ENAMETOOLONG` from `_sendToDomainSocket` and
`netty_unix_socket_sendToAddressesDomainSocket` if the path is longer
than `sizeof(sun_path)`, like `bindDomainSocket` and
`connectDomainSocket` do. Add
`SocketTest.testSendToDomainSocketWithTooLongPath`.
Result:
Sending to a UDS path that does not fit into `sun_path` fails with an
`IOException` ("File name too long") instead of using a truncated path.
… map (#18070)
Motivation:
The iterators of `IntObjectHashMap` and the other generated primitive
maps scan the arrays from index 0. `remove()` calls `removeAt(...)`,
which moves the displaced entries that follow the removed one back into
the free slot. That run of entries can wrap around from the end of the
arrays to index 0, so an entry at the start of the arrays, which the
iterator has already returned, can be moved to a slot that is still
ahead of the iterator and is returned again:
```java
IntObjectHashMap<String> map = new IntObjectHashMap<>(8);
map.put(6, "a"); // index 6
map.put(14, "b"); // hashes to 6, stored at index 7
map.put(15, "c"); // hashes to 7, wraps around to index 0
Iterator<PrimitiveEntry<String>> it = map.entries().iterator();
while (it.hasNext()) {
int key = it.next().key();
System.out.println(key);
if (key != 15) {
it.remove();
}
}
// prints 15, 6, 14, 15
```
The same happens through `entrySet()`, `keySet()` and `values()`.
Entries are only ever returned twice, never skipped. This has been the
case since `remove()` started moving entries back instead of leaving
tombstones (07024a4, 2014). The callers in Netty that remove while
iterating (`DefaultHttp2Connection.close(...)` and
`WeightedFairQueueByteDistributor`) remove the entries they visit, so I
did not find an affected caller in Netty itself. Code that removes only
some of the entries can see an entry twice.
Modification:
- Start the iteration right after an empty slot and wrap around at the
end of the arrays. A run of occupied slots ends before that empty slot,
so `removeAt(...)` never moves an entry that was already returned to a
slot ahead of the iterator. `calcMaxSize(int)` ensures that there is
always an empty slot.
- Add `iteratorRemoveShouldNotReturnEntriesTwice` to the map tests.
Result:
Removing entries while iterating returns every entry exactly once. The
example above prints `6, 14, 15`.
The new test fails for all five map types before the change and passes
after it. I also ran a randomized check with `LongObjectHashMap`
(capacity 1 to 64, load factor 0.1 to 0.99, up to 48 keys, removing each
visited entry with a random probability through `entries()`,
`entrySet()` and `values()`) that every key is returned exactly once and
that the map ends up with the expected content: 1,899 of 300,000 runs
failed with 4.2.19.Final, none of 600,000 runs failed with this change.
Tests of `common`, `codec-http`, `codec-http2`, `codec-mqtt`,
`codec-redis`, `codec-dns` and `resolver-dns` pass. I could not run the
`codec-http3` tests locally because they need the native QUIC library;
its settings tests check the content, not the order.
The iteration order changes when index 0 is occupied. The order of these
maps is not specified, and the tests above do not depend on it.
…8069)
Motivation:
`AbstractDiskHttpData.setContent(ByteBuf)` returns early when the buffer
is empty and never calls `setCompleted()`. An empty `DiskAttribute` or
`DiskFileUpload` therefore reports `isCompleted() == false`, while
`MemoryAttribute` and `MemoryFileUpload` report `true`. `MixedAttribute`
and `MixedFileUpload` behave the same once they store their data on
disk.
`HttpPostStandardRequestDecoder` calls `setValue("")` for a field
without `=` (for example `a` in `a&b=c`), so with a disk-based
`HttpDataFactory` that attribute is never completed. The early return
has been there since the multipart codec was ported to 4.x.
Modification:
- Call `setCompleted()` before both returns in the empty-buffer path.
- Add `HttpDataTest.testSetContentEmptyBufferCompletes`, which runs for
all `HttpData` implementations.
Result:
Setting empty content marks every `HttpData` implementation as
completed.
Decoding the `application/x-www-form-urlencoded` body `a&b=c&d=` with
`new DefaultHttpDataFactory(true)`:
```
before: a='' completed=false; b='c' completed=true; d='' completed=true
after: a='' completed=true; b='c' completed=true; d='' completed=true
```
`factory.createAttribute(request, "x", "")` with the same factory
changes from `isCompleted() == false` to `true`. With `new
DefaultHttpDataFactory(false)` all of them were already `true`.
The new test fails before the change for `DiskAttribute`,
`DiskFileUpload` and the two mixed implementations (which use disk
storage in that test) and passes after it. `codec-http` tests pass.
Motivation:
`SipHash.macHash(...)` builds the last, partial block from the remaining
bytes with `(long) input.get(...) << n` and `b |= input.get(...)`.
`ByteBuffer.get(...)` returns a signed byte, so a trailing byte >= 0x80
is
sign-extended and sets all the bits above its position to 1. This does
not
compute SipHash, and all bytes after such a byte, and the length that is
stored in the top byte, are lost. For example, `{0x80, 1}` and `{0x80,
2}` hash to the same value.
`ConnectionIdChannelMap` uses `SipHash` to prevent hash DoS attacks with
connection ids chosen by the peer, so it is possible to create many
connection ids that collide. The tests did not notice it as the
reference
inputs only contain bytes below 0x80.
Modification:
Mask the trailing bytes with `0xFFL` before they are shifted. Add tests
that compare the result with a reference implementation for inputs with
bytes >= 0x80, and that check the trailing bytes are not ignored.
Result:
`SipHash` hashes all bytes of the input independent of their sign.
Motivation:
`SpdySessionHandler.channelRead()` issues a session error and returns
when a DATA frame drives the session receive window below zero, but
unlike the other early returns in that branch it does not release the
frame. The frame is a retained slice of the inbound buffer, so the
buffer is leaked. A peer can trigger this without opening a stream when
`SpdyFrameCodec` is configured with a `maxChunkSize` larger than the
initial 64 KiB session window (the default `maxChunkSize` of 8192 is not
affected, since the window is replenished before it can go negative).
Modification:
Release the DATA frame before issuing the session error, and add
`testDataFrameExceedingSessionWindowIsReleased`, which fails without the
fix (`refCnt` 1 instead of 0).
Result:
No buffer leak when a peer overruns the SPDY session window.
This issue was found by an LLM-Enhanced Static Analysis Engine and
verified manually; the patch was manually reviewed.
…ioEventLoopTest
Motivation:
`testTaskRemovalOnShutdownThrowsNoUnsupportedOperationException` starts a
producer thread that calls `execute(...)` in a tight loop until it gets a
`RejectedExecutionException`. The number of pending tasks was limited to
`MAX_PENDING_TASKS`, but only while the executor was not shutting down.
A shutting down executor still accepts tasks until it reaches
`ST_SHUTDOWN`, so on a loaded machine the producer could outpace the event
loop in that window and the test failed with an `OutOfMemoryError` instead
of the expected `RejectedExecutionException`.
Modification:
Throttle the producer until the executor is shut down, not just until it
is shutting down.
Result:
The queue stays bounded during shutdown, so the test no longer fails with
an `OutOfMemoryError`.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|