Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebSocketClientProtocolHandler: add option to disable UTF8 validation #13265

Merged
merged 1 commit into from Mar 10, 2023

Conversation

mostroverkhov
Copy link
Contributor

WebSocketClientProtocolHandler: add option to disable UTF8 validation of text frames.

Motivation:

WebSocketClientProtocolHandler unconditionally adds UTF8 validation handler, even if one is not necessary (e.g. text frames are not used by application).

Modification:

add WebSocketClientProtocolConfig.withUTF8Validator option.

WebSocketClientProtocolHandler uses .withUTF8Validator option when adding Utf8FrameValidator to channel pipeline.

Result:

configurable UTF8 validation of text frames payload in WebSocketClientProtocolHandler.

… of text frames

Motivation:

WebSocketClientProtocolHandler unconditionally adds UTF8 validation handler, even if one is not necessary (e.g. text frames are not used by application)

Modification:

add WebSocketClientProtocolConfig.withUTF8Validator option

WebSocketClientProtocolHandler uses .withUTF8Validator option when adding Utf8FrameValidator to channel pipeline

Result:

configurable UTF8 validation of text frames payload in WebSocketClientProtocolHandler
@normanmaurer normanmaurer added this to the 4.1.90.Final milestone Mar 10, 2023
@normanmaurer normanmaurer merged commit ebfc79c into netty:4.1 Mar 10, 2023
9 checks passed
@normanmaurer
Copy link
Member

@mostroverkhov thanks a lot !

normanmaurer pushed a commit that referenced this pull request Mar 10, 2023
… of text frames (#13265)

Motivation:

WebSocketClientProtocolHandler unconditionally adds UTF8 validation handler, even if one is not necessary (e.g. text frames are not used by application)

Modification:

add WebSocketClientProtocolConfig.withUTF8Validator option

WebSocketClientProtocolHandler uses .withUTF8Validator option when adding Utf8FrameValidator to channel pipeline

Result:

configurable UTF8 validation of text frames payload in WebSocketClientProtocolHandler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants