Skip to content

WebSocketServerHandshaker* may corrupt first WebSocket frame #786

@normanmaurer

Description

@normanmaurer

In WebSocketServerHandshaker* we use ChannelPipeline.replace(..) to replace the old HttpRequestDecoder with the right WebSocker_Decoder. This can lead to lost data as the old HttpRequestDecoder may have some data buffered. We need to use HttpRequestDecoder.replace(..) to make sure every buffered data is "hand-over" to the WebSocket_Decoder.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions