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
I find the calculation: TotalMessages = TotalBytes / size;
The default size is 32B.
But it seems the totalMessages is larger than actual. In fact, the size of message each time clients send is much larger than 32B because of the TCP buffer.
I doubt it's because of Nagle Algorithm,but after I close it, the size is still larger than 32B。
I find the calculation:
TotalMessages = TotalBytes / size;
The default size is 32B. But it seems the totalMessages is larger than actual. In fact, the size of message each time clients send is much larger than 32B because of the TCP buffer. I doubt it's because of Nagle Algorithm,but after I close it, the size is still larger than 32B。