GeezerVison is showing github.com — Comparing netty-4.1.124.Final...netty-4.1.125.Final · netty/netty
Permalink
base repository:
netty/netty
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
Uh oh!
There was an error while loading. Please reload this page.
base:
netty-4.1.124.Final
head repository:
netty/netty
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
Uh oh!
There was an error while loading. Please reload this page.
compare:
netty-4.1.125.Final
-
18
commits
-
105
files changed
-
7
contributors
Commits on Aug 13, 2025
-
Configuration menu
Browse the repository at this point in the history
Commits on Aug 14, 2025
-
Make org.graalvm.nativeimage:svm optional in netty-common (#15558)
Motivation:
The netty-common manifest lists com.oracle.svm.core.annotate as a hard
OSGi dependency, preventing resolving netty-common in OSGi without also
supplying org.graalvm.nativeimage:svm as a dependency.
Modifications:
Change the svm dependency to be 'optional' rather than 'provided', so
that maven-bundle-plugin marks the related import entry for
com.oracle.svm.core.annotate as optional in the manifest Import-Package
declaration.
Result:
netty-common lists com.oracle.svm.core.annotate as an optional import
and can be resolved without org.graalvm.nativeimage:svm dependency.
Fixes #15557
Configuration menu
Browse the repository at this point in the history
Commits on Aug 15, 2025
-
Exposed encoderEnforceMaxRstFramesPerWindow for HttpToHttp2Connection…
…HandlerBuilder (#15560)
### Motivation:
To expose APIs under AbstractHttp2ConnectionHandlerBuilder to be able to
use with the HttpToHttp2ConnectionHandlerBuilder
### Modification:
Exposed encoderEnforceMaxRstFramesPerWindow under
HttpToHttp2ConnectionHandlerBuilder, updated enforceNonCodecConstraints
for AbstractHttp2ConnectionHandlerBuilder, and updated pom.xml for
ignoring API change
### Result:
Fixes #15559
Configuration menu
Browse the repository at this point in the history
Commits on Aug 18, 2025
-
Always load BouncyCastle classes with the Netty classloader (#15533)
Motivation:
Between Java security settings, different classloaders, and native image
compilation, loading the BouncyCastle classes are somewhat complicated.
Modification:
Collect all the BouncyCastle class loading and availability checking in
a new BouncyCastleUtil class. Make use of this new class in our
BouncyCastle implementations of ALPN, PEM reading, and self-signed
certificate generation.
Result:
We should hopefully now be loading the classes correctly in all cases.
Fixes #15508
---------
Co-authored-by: Norman Maurer <[email protected]>
Configuration menu
Browse the repository at this point in the history
Commits on Aug 19, 2025
-
Configuration menu
Browse the repository at this point in the history
-
Always load BouncyCastle classes with the Netty classloader (#15533) … (
#15570)
…(#15569)
Motivation:
Between Java security settings, different classloaders, and native image
compilation, loading the BouncyCastle classes are somewhat complicated.
Modification:
Collect all the BouncyCastle class loading and availability checking in
a new BouncyCastleUtil class. Make use of this new class in our
BouncyCastle implementations of ALPN, PEM reading, and self-signed
certificate generation.
Result:
We should hopefully now be loading the classes correctly in all cases.
Fixes #15508
Co-authored-by: Chris Vest <[email protected]>
Configuration menu
Browse the repository at this point in the history
Commits on Aug 21, 2025
-
Make DatagramMulticastTest handlers sharable (#15579)
Motivation:
The test has a retry loop, so the handlers need to be sharable.
Modification:
Make the two handlers used in the test sharable.
Result:
The test should no longer fail with exceptions like the following:
```
2025-08-20T21:27:15.4437273Z [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.004 s <<< FAILURE! -- in io.netty.testsuite.transport.socket.DatagramMulticastTest
2025-08-20T21:27:15.4438772Z [ERROR] io.netty.testsuite.transport.socket.DatagramMulticastTest.testMulticast(TestInfo) -- Time elapsed: 0.004 s <<< ERROR!
2025-08-20T21:27:15.4440833Z io.netty.channel.ChannelPipelineException: io.netty.testsuite.transport.socket.DatagramMulticastTest$2 is not a @sharable handler, so can't be added or removed multiple times.
2025-08-20T21:27:15.4442483Z at io.netty.channel.DefaultChannelPipeline.checkMultiplicity(DefaultChannelPipeline.java:549)
2025-08-20T21:27:15.4443649Z at io.netty.channel.DefaultChannelPipeline.internalAdd(DefaultChannelPipeline.java:166)
2025-08-20T21:27:15.4444995Z at io.netty.channel.DefaultChannelPipeline.addLast(DefaultChannelPipeline.java:227)
2025-08-20T21:27:15.4446024Z at io.netty.channel.DefaultChannelPipeline.addLast(DefaultChannelPipeline.java:330)
2025-08-20T21:27:15.4447045Z at io.netty.channel.DefaultChannelPipeline.addLast(DefaultChannelPipeline.java:319)
2025-08-20T21:27:15.4447883Z at io.netty.bootstrap.Bootstrap.init(Bootstrap.java:276)
2025-08-20T21:27:15.4448695Z at io.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstrap.java:327)
2025-08-20T21:27:15.4449842Z at io.netty.bootstrap.AbstractBootstrap.doBind(AbstractBootstrap.java:288)
2025-08-20T21:27:15.4450714Z at io.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:284)
2025-08-20T21:27:15.4451792Z at io.netty.testsuite.transport.socket.DatagramMulticastTest.testMulticast(DatagramMulticastTest.java:93)
2025-08-20T21:27:15.4453100Z at io.netty.testsuite.transport.socket.DatagramMulticastTest$1.run(DatagramMulticastTest.java:58)
2025-08-20T21:27:15.4454240Z at io.netty.testsuite.transport.socket.DatagramMulticastTest$1.run(DatagramMulticastTest.java:55)
2025-08-20T21:27:15.4455378Z at io.netty.testsuite.transport.AbstractComboTestsuiteTest.run(AbstractComboTestsuiteTest.java:52)
2025-08-20T21:27:15.4456615Z at io.netty.testsuite.transport.socket.DatagramMulticastTest.testMulticast(DatagramMulticastTest.java:55)
2025-08-20T21:27:15.4457594Z at java.base/java.lang.reflect.Method.invoke(Method.java:566)
2025-08-20T21:27:15.4458245Z at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
2025-08-20T21:27:15.4459103Z at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
2025-08-20T21:27:15.4459917Z Suppressed: java.util.concurrent.CompletionException: Rethrowing promise failure cause
2025-08-20T21:27:15.4460952Z at io.netty.util.concurrent.DefaultPromise.rethrowIfFailed(DefaultPromise.java:685)
2025-08-20T21:27:15.4461893Z at io.netty.util.concurrent.DefaultPromise.sync(DefaultPromise.java:419)
2025-08-20T21:27:15.4462736Z at io.netty.channel.DefaultChannelPromise.sync(DefaultChannelPromise.java:119)
2025-08-20T21:27:15.4463601Z at io.netty.channel.DefaultChannelPromise.sync(DefaultChannelPromise.java:30)
2025-08-20T21:27:15.4464208Z ... 8 more
```
Configuration menu
Browse the repository at this point in the history
Commits on Aug 26, 2025
-
Don't try to handle incomplete upgrade request (#15581) (#15585)
Motivation:
HttpServerUpgradeHandler checks whether a request is an upgrade request,
and if the upgrade request is incomplete, uses HttpObjectAggregator to
aggregate it. When aggregation is complete, the upgrade is performed,
under the assumption that the aggregated request is an upgrade request.
In certain scenarios, HttpObjectAggregator can refuse to aggregate a
request, but HttpServerUpgradeHandler does not realize this. If a new
request comes in afterwards and is aggregated, that new request does not
have to be an upgrade request. This leads to an NPE in the upgrade
method because the `Upgrade` header is missing.
In this PR's test case, the first request fails to aggregate because it
has an invalid `Expect` header. I'm not sure if there are other cases,
but HttpObjectAggregator has a lot of escape hatches.
Modification:
In HttpServerUpgradeHandler, override beginAggregation. This method is
called once the final decision to aggregate has been made. This now sets
a flag that tells HttpServerUpgradeHandler that it really should handle
the request as an upgrade.
Result:
No NPE.
Discovered by fuzzing.
Co-authored-by: Jonas Konrad <[email protected]>
Configuration menu
Browse the repository at this point in the history
Commits on Aug 28, 2025
-
Configuration menu
Browse the repository at this point in the history
Commits on Aug 30, 2025
-
Configuration menu
Browse the repository at this point in the history
-
Drop unknown frame on missing stream (#15592) (#15595)
Motivation:
Receiving an unknown frame on a stream that is in 'idle' state (i.e. not
created) would produce a NullPointerException.
Modification:
If an unknown frame is received and there is no associated stream, drop
that frame. This is in accordance with [RFC
9113](https://httpwg.org/specs/rfc9113.html#StreamStates):
> Receipt of frames for which the semantics are unknown cannot be
treated as an error, as the conditions for sending and receiving those
frames are also unknown
Another option would be to create the stream.
Result:
No NPE.
Found by fuzzing.
Co-authored-by: Jonas Konrad <[email protected]>
Configuration menu
Browse the repository at this point in the history
Commits on Sep 2, 2025
-
Fix IllegalReferenceCountException on invalid upgrade response (#15602)…
… (#15606)
Motivation:
When HttpClientUpgradeHandler receives a response with an invalid
upgrade header, it would release the response but still keep it in the
`out` list. Downstream code would then get an
IllegalReferenceCountException when releasing the response.
Modification:
Remove unnecessary release. I don't think it's ever appropriate.
Result:
No IllegalReferenceCountException.
Found by fuzzing
---------
Co-authored-by: Jonas Konrad <[email protected]>
Configuration menu
Browse the repository at this point in the history
-
Configuration menu
Browse the repository at this point in the history
-
Configuration menu
Browse the repository at this point in the history
-
Configuration menu
Browse the repository at this point in the history
Commits on Sep 3, 2025
-
Merge commit from fork
* Prevent HTTP request/response smuggling via chunk encoding
Motivation:
Transfer-Encoding: chunked has some strict rules around parsing CR LF delimiters.
If we are too lenient, it can cause request/response smuggling issues when combined with proxies that are lenient in different ways.
See https://w4ke.info/2025/06/18/funky-chunks.html for the details.
Modification:
- Make sure that we reject chunks with chunk-extensions that contain lone Line Feed octets without their preceding Carriage Return octet.
- Make sure that we issue HttpContent objects with decoding failures, if we decode a chunk and it isn't immediately followed by a CR LF octet pair.
Result:
Smuggling requests/responses is no longer possible.
Fixes #15522
* Enforce CR LF line separators for HTTP messages by default
But also make it configurable through `HttpDecoderConfig`, and add a system property opt-out to change the default back.
* Remove property for the name of the strict line parsing property
* Remove HeaderParser.parse overload that only takes a buffer argument
Configuration menu
Browse the repository at this point in the history
-
Merge commit from fork (#15612)
Motivation:
We should ensure our decompressing decoders will fire their buffers
through the pipeliner as fast as possible and so allow the user to take
ownership of these as fast as possible. This is needed to reduce the
risk of OOME as otherwise a small input might produce a large amount of
data that can't be processed until all the data was decompressed in a
loop. Beside this we also should ensure that other handlers that uses
these decompressors will not buffer all of the produced data before
processing it, which was true for HTTP and HTTP2.
Modifications:
- Adjust affected decoders (Brotli, Zstd and ZLib) to fire buffers
through the pipeline as soon as possible
- Adjust HTTP / HTTP2 decompressors to do the same
- Add testcase.
Result:
Less risk of OOME when doing decompressing
Co-authored-by: yawkat <[email protected]>
Configuration menu
Browse the repository at this point in the history
-
Configuration menu
Browse the repository at this point in the history
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff netty-4.1.124.Final...netty-4.1.125.Final
Uh oh!
There was an error while loading. Please reload this page.
|