From 168720e969842856526146f7304c1271e28757bc Mon Sep 17 00:00:00 2001 From: franz1981 Date: Tue, 2 Apr 2024 10:34:38 +0200 Subject: [PATCH] Replace wrong Vertx direct allocator with Netty one --- .../jboss/resteasy/reactive/server/vertx/AppendBuffer.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/AppendBuffer.java b/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/AppendBuffer.java index e4f1651e86d14..07212a4d2b6d0 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/AppendBuffer.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/AppendBuffer.java @@ -10,7 +10,6 @@ import io.netty.buffer.CompositeByteBuf; import io.netty.buffer.PooledByteBufAllocator; import io.netty.util.internal.PlatformDependent; -import io.vertx.core.buffer.impl.PartialPooledByteBufAllocator; import io.vertx.core.buffer.impl.VertxByteBufAllocator; /** @@ -134,8 +133,7 @@ public int append(byte[] bytes, int off, int len) { // VertxByteBufAllocator allocates cheaper heap buffers ie which doesn't use reference counting tmpBuf = VertxByteBufAllocator.DEFAULT.heapBuffer(chunkCapacity); } else { - // Vertx should replace the "standerd" PooledByteBufAllocator.DEFAULT this one - tmpBuf = PartialPooledByteBufAllocator.INSTANCE.directBuffer(chunkCapacity); + tmpBuf = PooledByteBufAllocator.DEFAULT.directBuffer(chunkCapacity); } try { tmpBuf.writeBytes(bytes, off, toWrite);