Skip to content

ManagedWebSocket doesn't send payloads if _isServer is true #17979

@analogrelay

Description

@analogrelay

Looks like System.Net.WebSockets.ManagedWebSocket.WriteFrameToSendBuffer fails to actually write the payload if _isServer is set. It copies the payload into the send buffer in the same if-branch that handles masking (which is client-only 😄).

Discovered and fixed this while porting code to ASP.NET, so I'm going to port the fix over to corefx and open a PR.

/cc @stephentoub @Tratcher

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions