We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e379f1 commit 088cad9Copy full SHA for 088cad9
rsocket-core/src/main/java/io/rsocket/frame/decoder/DefaultPayloadDecoder.java
@@ -52,12 +52,12 @@ public Payload apply(ByteBuf byteBuf) {
52
throw new IllegalArgumentException("unsupported frame type: " + type);
53
}
54
55
- ByteBuffer data = ByteBuffer.allocateDirect(d.readableBytes());
+ ByteBuffer data = ByteBuffer.allocate(d.readableBytes());
56
data.put(d.nioBuffer());
57
data.flip();
58
59
if (m != null) {
60
- ByteBuffer metadata = ByteBuffer.allocateDirect(m.readableBytes());
+ ByteBuffer metadata = ByteBuffer.allocate(m.readableBytes());
61
metadata.put(m.nioBuffer());
62
metadata.flip();
63
0 commit comments