sta / sta/websocket-sharp

Appends when the WebSocket is closed

Open
#654 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
6.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

c# exception:System.ArgumentOutOfRangeException: Number must be either non-negative and less than or equal to Int32.MaxValue or -1.
Parameter name: timeout
at System.Threading.WaitHandle.WaitOne (System.TimeSpan timeout, System.Boolean exitContext) [0x00026] in :0
at System.Threading.WaitHandle.WaitOne (System.TimeSpan timeout) [0x00000] in :0
at WebSocketSharp.WebSocket.closeHandshake (WebSocketSharp.PayloadData payloadData, System.Boolean send, System.Boolean receive, System.Boolean received) [0x00059] in <583fc2c8ef584058bdb5e96261e9f743>:0
at WebSocketSharp.WebSocket.close (WebSocketSharp.PayloadData payloadData, System.Boolean send, System.Boolean receive, System.Boolean received) [0x000a1] in <583fc2c8ef584058bdb5e96261e9f743>:0
at WebSocketSharp.WebSocket.close (System.UInt16 code, System.String reason) [0x00058] in <583fc2c8ef584058bdb5e96261e9f743>:0
at WebSocketSharp.WebSocket.Close () [0x00001] in <583fc2c8ef584058bdb5e96261e9f743>:0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at WebSocket.Close(), then follow close() and closeHandshake() in the stack trace to inspect the timeout passed to WaitHandle.WaitOne. Reproduce the reported exception when closing the WebSocket and determine the expected behavior for this close path; done means closing no longer raises the reported ArgumentOutOfRangeException.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.