Skip to content

WebSocket: message handler sometimes called with null data (potentially issue in frame processing) #2859

@farwayer

Description

@farwayer

Bug Description

I’ll say right away that the bug is floating and I don’t have a ready-made recipe for reproducing it. The bug usually appeared during debugging. Apparently, timings and the sequence of data arrival are important. The server should also send pings to get this effect.

From the screenshot you can see that the websocketMessageReceived function is called with this.#info.originalOpcode=9 (PING frame type), which should not happen.

Logs & Screenshots

2024_02_27T05 33 03

Environment

node v21.6.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions