© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
17 replies
Determinism

WriteAsync doesn't always send data to all connected clients

I am making an application that has a TCP client that listens for messages from a TCP server, then puts those messages in a queue, then sends all of the queued messages to the connected TCP clients of the server started. The application is working, but sometimes
WriteAsync
WriteAsync
doesn't send the same amount of messages to all clients. Any ideas of what the issues is, and also what can I improve on in this code?

https://hastebin.com/fejosepufi.csharp

Thanks
Hastebin: Send and Save Text or Code Snippets for Free | Toptal®
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

AngleSharp doesn't send request on SubmitForm
C#CC# / help
10mo ago
My socket won't send data to 600 endpoints
C#CC# / help
2y ago
❔ Enabling all CORS doesn't work
C#CC# / help
4y ago