chronoxor / NetCoreServer

Ultra fast and low latency asynchronous socket server & client C# .NET Core library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution
https://chronoxor.github.io/NetCoreServer
MIT License
2.63k stars 550 forks source link

发送消息过快导致部分消息偶尔无法接受到 #289

Open CrazyWeslie opened 5 months ago

CrazyWeslie commented 5 months ago

修改前: image 修改后: image

Sea4U commented 5 months ago

https://github.com/chronoxor/NetCoreServer/blob/51d182341f3234367a5ef440ffb72d393a8a5f81/source/NetCoreServer/TcpSession.cs#L345

Sea4U commented 5 months ago

我细看了下 没什么大问题,可能是你的客户端没有处理stream的拆分。收到的消息包可能是多条或者不足一条。

WangYou77 commented 2 months ago

我也发现同样的问题 image image 但是delay(1)的时候就没问题 image image