Skip to content

BeginWrite lock error and message not sending. #33

Description

@MattComb

Hi Denis,

I've finally looped around to convert from Val's code base to yours. I'm encountering a problem when I attempt to run using the rx code.

When the message tries to send, it is getting locked on the following code


public void BeginWriting()
        {
            if (Interlocked.CompareExchange(ref this.ongoingMessageWrite, 1, 0) == 1)
                throw new WebSocketException("There is an ongoing message that is being written from somewhere else. Only a single write is allowed at the time.");
        }

The first message send is ok, but is never received and the second send is blocked here so appears the message is failing to be dequeued/sent.

Any idea why this might be ?

Regards.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions