Skip to content

Commit 9a1bba5

Browse files
committed
NettyDataBufferFactory.wrap(ByteBuf) calls touch()
Closes gh-21960
1 parent 57d006b commit 9a1bba5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-core/src/main/java/org/springframework/core/io/buffer/NettyDataBufferFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public DataBuffer wrap(byte[] bytes) {
9090
* @return the wrapped buffer
9191
*/
9292
public NettyDataBuffer wrap(ByteBuf byteBuf) {
93+
byteBuf.touch();
9394
return new NettyDataBuffer(byteBuf, this);
9495
}
9596

0 commit comments

Comments
 (0)