MirrorNetworking / MirrorNetworking/Telepathy
Disconnect overtakes final message
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1.2k
- Forks
- 141
- PR merge metrics
- No merged PRs in 30d
Description
When I send a message and disconnect a client immediately afterwards (in the same tick) it seems like this last message is being dropped. I was wondering if the framework shouldn't make sure that no messages are lost, meaning that message and disconnect are processed in the appropriate order.
This is a simple code example in C#:
var message = new FinalMessage();
client.Send(message.Serialize());
client.Disconnect();
The FinalMessage will not arrive at the host.
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 by tracing the C# Send and Disconnect calls shown in the issue and how they are handled when invoked in the same tick. Reproduce the sequence with FinalMessage and verify whether the host receives it before disconnect processing; done means the final message is not dropped and ordering is preserved.
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
- Mostly clear
- Newbie friendliness
- 35/100