netty5/codec-http/src/main
Dmitriy Dumanskiy 10ee697557 Allow to turn off Utf8FrameValidator creation for websocket with Bina… (#9417)
…ryWebSocketFrames

Motivation:

`Utf8FrameValidator` is always created and added to the pipeline in `WebSocketServerProtocolHandler.handlerAdded` method. However, for websocket connection with only `BinaryWebSocketFrame`'s UTF8 validator is unnecessary overhead. Adding of `Utf8FrameValidator` could be easily avoided by extending of `WebSocketDecoderConfig` with additional property.

Specification requires UTF-8 validation only for `TextWebSocketFrame`.

Modification:

Added `boolean WebSocketDecoderConfig.withUTF8Validator` that allows to avoid adding of `Utf8FrameValidator` during pipeline initialization.

Result:

Less overhead when using only `BinaryWebSocketFrame`within web socket.
2019-08-03 10:36:54 +00:00
..
java/io/netty/handler/codec Allow to turn off Utf8FrameValidator creation for websocket with Bina… (#9417) 2019-08-03 10:36:54 +00:00
resources/META-INF/native-image/io.netty/codec-http Remove deprecated GraalVM native-image flags (#9118) 2019-05-22 19:22:03 +02:00