NettyDataBufferFactory.join should return original buffer as-is in case of a single element (for compatibility with Netty 4.1.32) [SPR-17560] #22092
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Juergen Hoeller opened SPR-17560 and commented
NettyDataBufferFactory.join(List<DataBuffer>)
always creates aCompositeByteBuf
, even for a single-element list of original buffers. This is generally worth optimizing but particularly necessary for Netty 4.1.32 whereCompositeByteBuf
is enforced to have at least two elements (see our currentHttpServerTests
failures on CI).Affects: 5.0.11, 5.1.3
Referenced from: commits d5dab12, c5428e6, abf9ce8
Backported to: 5.0.12
The text was updated successfully, but these errors were encountered: