netty5/codec-http/src/main/java/io/netty/handler/codec/http/websocketx
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
..
extensions Ensure "full" ownership of msgs passed to EmbeddedChannel.writeInbound() (#9058) 2019-05-22 12:08:49 +02:00
BinaryWebSocketFrame.java Add user possibility to skip the evaluation of a certain websocket ex… (#8910) 2019-03-22 14:48:22 +01:00
CloseWebSocketFrame.java Cleanup in websockets, throw exception before allocating response if possible (#9361) 2019-07-16 13:12:17 +02:00
ContinuationWebSocketFrame.java Add user possibility to skip the evaluation of a certain websocket ex… (#8910) 2019-03-22 14:48:22 +01:00
CorruptedWebSocketFrameException.java WebSocket is closed without an error on protocol violations (#9116) 2019-06-18 10:05:58 +02:00
package-info.java Change the netty.io homepage scheme(http -> https) (#9344) 2019-07-09 21:09:42 +02:00
PingWebSocketFrame.java Add user possibility to skip the evaluation of a certain websocket ex… (#8910) 2019-03-22 14:48:22 +01:00
PongWebSocketFrame.java Add user possibility to skip the evaluation of a certain websocket ex… (#8910) 2019-03-22 14:48:22 +01:00
TextWebSocketFrame.java Add user possibility to skip the evaluation of a certain websocket ex… (#8910) 2019-03-22 14:48:22 +01:00
Utf8FrameValidator.java Close connection for CorruptedFrameException (#8705) 2019-01-17 07:17:12 +01:00
Utf8Validator.java WebSocket is closed without an error on protocol violations (#9116) 2019-06-18 10:05:58 +02:00
WebSocket07FrameDecoder.java WebSocket is closed without an error on protocol violations (#9116) 2019-06-18 10:05:58 +02:00
WebSocket07FrameEncoder.java #751 - Added support for legacy websocket v7 in order to pass SocksJS tests 2012-12-19 12:35:56 +01:00
WebSocket08FrameDecoder.java WebSocket is closed without an error on protocol violations (#9116) 2019-06-18 10:05:58 +02:00
WebSocket08FrameEncoder.java Fix spelling in javadocs and field name. 2016-02-01 12:03:14 +01:00
WebSocket13FrameDecoder.java WebSocket is closed without an error on protocol violations (#9116) 2019-06-18 10:05:58 +02:00
WebSocket13FrameEncoder.java Update license headers 2012-06-04 13:31:44 -07:00
WebSocket00FrameDecoder.java Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377) 2019-07-18 10:29:50 +02:00
WebSocket00FrameEncoder.java [#2768] Correctly duplicate buffer for CloseWebSocketFrames 2014-08-14 09:54:35 +02:00
WebSocketChunkedInput.java Support WebSocket data chunked transfer 2016-06-13 08:55:07 +02:00
WebSocketClientHandshaker.java Cleanup in websockets, throw exception before allocating response if possible (#9361) 2019-07-16 13:12:17 +02:00
WebSocketClientHandshaker07.java Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377) 2019-07-18 10:29:50 +02:00
WebSocketClientHandshaker08.java Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377) 2019-07-18 10:29:50 +02:00
WebSocketClientHandshaker13.java Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377) 2019-07-18 10:29:50 +02:00
WebSocketClientHandshaker00.java Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377) 2019-07-18 10:29:50 +02:00
WebSocketClientHandshakerFactory.java Introduce WebSocketClientHandshaker::absoluteUpgradeUrl, close #9205 (#9206) 2019-06-07 16:01:10 -07:00
WebSocketClientProtocolHandler.java Support handshake timeout in websocket handlers (#8856) 2019-05-22 12:37:28 +02:00
WebSocketClientProtocolHandshakeHandler.java Do not use static exceptions for websocket handshake timeout (#9174) 2019-05-23 08:24:03 +02:00
WebSocketCloseStatus.java WebSocket is closed without an error on protocol violations (#9116) 2019-06-18 10:05:58 +02:00
WebSocketDecoderConfig.java WebSocket is closed without an error on protocol violations (#9116) 2019-06-18 10:05:58 +02:00
WebSocketFrame.java Add user possibility to skip the evaluation of a certain websocket ex… (#8910) 2019-03-22 14:48:22 +01:00
WebSocketFrameAggregator.java HttpObjectAggregator doesn't check content-length header 2015-08-17 09:26:50 -07:00
WebSocketFrameDecoder.java [#1515] Add WebSocketFrameEncoder and WebSocketFrameDecoder interfaces and let our impls implement it 2013-07-04 06:41:22 +02:00
WebSocketFrameEncoder.java [#1515] Add WebSocketFrameEncoder and WebSocketFrameDecoder interfaces and let our impls implement it 2013-07-04 06:41:22 +02:00
WebSocketHandshakeException.java Update license headers 2012-06-04 13:31:44 -07:00
WebSocketProtocolHandler.java Bugfix #9257: WebSocketProtocolHandler does NOT support autoRead=false (#9258) 2019-06-24 09:07:57 +02:00
WebSocketScheme.java Immediate caching the strings wrapped to AsciiString 2017-08-15 06:22:14 +02:00
WebSocketServerHandshaker.java Add websocket encoder / decoder in correct order to the pipeline when HttpServerCodec is used (#9386) 2019-07-18 10:19:09 +02:00
WebSocketServerHandshaker07.java Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377) 2019-07-18 10:29:50 +02:00
WebSocketServerHandshaker08.java Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377) 2019-07-18 10:29:50 +02:00
WebSocketServerHandshaker13.java Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377) 2019-07-18 10:29:50 +02:00
WebSocketServerHandshaker00.java Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377) 2019-07-18 10:29:50 +02:00
WebSocketServerHandshakerFactory.java Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377) 2019-07-18 10:29:50 +02:00
WebSocketServerProtocolHandler.java Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377) 2019-07-18 10:29:50 +02:00
WebSocketServerProtocolHandshakeHandler.java Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377) 2019-07-18 10:29:50 +02:00
WebSocketUtil.java Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377) 2019-07-18 10:29:50 +02:00
WebSocketVersion.java #751 - Added support for legacy websocket v7 in order to pass SocksJS tests 2012-12-19 12:35:56 +01:00