Browse Source

NettyDataBufferFactory.wrap(ByteBuf) calls touch()

Closes gh-21960
pull/22728/head
Rossen Stoyanchev 7 years ago
parent
commit
9a1bba5b67
  1. 1
      spring-core/src/main/java/org/springframework/core/io/buffer/NettyDataBufferFactory.java

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

@ -90,6 +90,7 @@ public class NettyDataBufferFactory implements DataBufferFactory { @@ -90,6 +90,7 @@ public class NettyDataBufferFactory implements DataBufferFactory {
* @return the wrapped buffer
*/
public NettyDataBuffer wrap(ByteBuf byteBuf) {
byteBuf.touch();
return new NettyDataBuffer(byteBuf, this);
}

Loading…
Cancel
Save