e4995be33c
Motivation: In many places Netty uses Unpooled.buffer(0) while should use EMPTY_BUFFER. We can't change this due to back compatibility in the constructors but can use Unpooled.EMPTY_BUFFER in some cases to ensure we not allocate at all. In others we can directly use the allocator either from the Channel / ChannelHandlerContext or the request / response. Modification: - Use Unpooled.EMPTY_BUFFER where possible - Use allocator where possible Result: Fixes #9345 for websockets and http package |
||
---|---|---|
.. | ||
HelloWorldHttp1Handler.java | ||
HelloWorldHttp2Handler.java | ||
HelloWorldHttp2HandlerBuilder.java | ||
Http2Server.java | ||
Http2ServerInitializer.java | ||
package-info.java |