netty5/testsuite-http2/src/main/java/io/netty/testsuite/http2
Norman Maurer 1e8c0c59f1
Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377)
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
2019-07-18 10:29:50 +02:00
..
HelloWorldHttp1Handler.java Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377) 2019-07-18 10:29:50 +02:00
HelloWorldHttp2Handler.java Use long for http2 ping payload. 2018-02-08 10:23:34 +01:00
HelloWorldHttp2HandlerBuilder.java Add h2spec test suite module to check if netty http2 implementation conforms with the specification 2017-12-16 13:18:19 +01:00
Http2Server.java Add h2spec test suite module to check if netty http2 implementation conforms with the specification 2017-12-16 13:18:19 +01:00
Http2ServerInitializer.java remove unused imports (#9287) 2019-06-26 21:08:31 +02:00
package-info.java Add h2spec test suite module to check if netty http2 implementation conforms with the specification 2017-12-16 13:18:19 +01:00