Skip to content

kIncomingMessage undefined for socket.server #19231

Closed
@leiyangyou

Description

@leiyangyou

after upgrading to node 9.7 some existing code started crashing when calling socket.emit('data', data)

the socket was created by net/Server, and later added to an httpServer through httpServer.emit('connection', socket)

I understand that the usage may be a bit hacky, but this was how some third party library implemented a hybrid server (one that takes both tcp & ws connections)

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.httpIssues or PRs related to the http subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions