Skip to content

Commit 99580f4

Browse files
committed
chore: switch to custom published netty version
1 parent b879575 commit 99580f4

4 files changed

Lines changed: 3 additions & 162 deletions

File tree

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jakartaValidationApi = "3.1.1"
3333
hibernateValidator = "9.0.1.Final"
3434

3535
# netty stuff
36-
netty = "5.0.0.Alpha6-SNAPSHOT"
36+
netty = "2025.11.08-3a259e91"
3737
nettyContribHaProxy = "5.0.0.Alpha2"
3838

3939
[libraries]

renovate.json5

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
{
3131
"description": "Dependencies whose updates shouldn't be done automatically",
3232
"matchPackageNames": [
33-
"io.netty:**", // disabled until a stable version was released
3433
"eu.cloudnetservice.cloudnet:**", // disabled until a stable version was released
3534
],
3635
"enabled": false,

web-impl-netty/src/main/java/eu/cloudnetservice/ext/rest/netty/NettyChunkedStream.java

Lines changed: 0 additions & 159 deletions
This file was deleted.

web-impl-netty/src/main/java/eu/cloudnetservice/ext/rest/netty/NettyHttpServerHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import io.netty5.handler.codec.http.HttpRequest;
3939
import io.netty5.handler.codec.http.HttpResponseStatus;
4040
import io.netty5.handler.codec.http.HttpUtil;
41+
import io.netty5.handler.stream.ChunkedStream;
4142
import io.netty5.util.AttributeKey;
4243
import io.netty5.util.Resource;
4344
import io.netty5.util.Send;
@@ -263,7 +264,7 @@ private void handleMessage(
263264
HttpUtil.setTransferEncodingChunked(netty, true);
264265
channel.write(new DefaultHttpResponse(netty.protocolVersion(), netty.status(), netty.headers()));
265266
future = channel.writeAndFlush(new HttpChunkedInput(
266-
new NettyChunkedStream(response.bodyStream()),
267+
new ChunkedStream(response.bodyStream()),
267268
new EmptyLastHttpContent(channel.bufferAllocator())));
268269
} else {
269270
// transfer the data in one single go to the client

0 commit comments

Comments
 (0)