Skip to content

Add websocket encoder / decoder in correct order to the pipeline when…#9386

Merged
normanmaurer merged 1 commit into4.1from
ws_encoder_decoder_order
Jul 18, 2019
Merged

Add websocket encoder / decoder in correct order to the pipeline when…#9386
normanmaurer merged 1 commit into4.1from
ws_encoder_decoder_order

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

@normanmaurer normanmaurer commented Jul 17, 2019

… HttpServerCodec is used

Motivation:

We need to ensure we place the encoder before the decoder when doing the websockets upgrade as the decoder may produce a close frame when protocol violations are detected.

Modifications:

  • Correctly place encoder before decoder
  • Add unit test

Result:

Fixes #9300

@slandelle
Copy link
Copy Markdown
Contributor

@normanmaurer Don't you mean violations instead of validations in the commit message?

@slandelle
Copy link
Copy Markdown
Contributor

Otherwise, LGTM.

@normanmaurer
Copy link
Copy Markdown
Member Author

@slandelle yep... typo :)

… HttpServerCodec is used

Motivation:

We need to ensure we place the encoder before the decoder when doing the websockets upgrade as the decoder may produce a close frame when protocol violations are detected.

Modifications:

- Correctly place encoder before decoder
- Add unit test

Result:

Fixes #9300
@normanmaurer normanmaurer force-pushed the ws_encoder_decoder_order branch from c0ad753 to 2f7f2ce Compare July 18, 2019 05:33
@normanmaurer normanmaurer merged commit 26c3abc into 4.1 Jul 18, 2019
@normanmaurer normanmaurer deleted the ws_encoder_decoder_order branch July 18, 2019 08:19
normanmaurer added a commit that referenced this pull request Jul 18, 2019
… HttpServerCodec is used (#9386)

Motivation:

We need to ensure we place the encoder before the decoder when doing the websockets upgrade as the decoder may produce a close frame when protocol violations are detected.

Modifications:

- Correctly place encoder before decoder
- Add unit test

Result:

Fixes #9300
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.

Wrong websocket status code

2 participants