How to enable server cleans up the inactive sessions periodically?
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.1k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
Hi websocket-Sharp expert,
Thank you for providing such a good lib for us to use!
But I have a questions,
I met below error
https://github.com/sta/websocket-sharp/issues/43
so I add
_socksrv.KeepClean = false;
before server start,
but if I disable this feature, sometimes, the client close the connections, but server are not aware of this.
so the Sessions.Count are not decreased.
Could you please suggest, how can I avoid that error and also have the server could clean the inactive sessions?
Thank you in advanced.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the KeepClean setting and session tracking around _socksrv, Sessions.Count, and the behavior described in issue #43. Reproduce the case where a client closes without the server updating its sessions, then verify that inactive sessions are cleaned up without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100