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
websoket server
at storeWSCloseStatus, when u close the networking,it will show exception: Index was outside the bounds of the array
the source code from websocket.cs line 306 : WsSendBuffer.Data[offset + i] = (byte)(buffer[i] ^ WsSendMask[i % 4]);
i think the reason is, at line 257: long size = storeWSCloseStatus ? (buffer.Length + 2) : buffer.Length;
then the buffer.Length < size
websoket server at storeWSCloseStatus, when u close the networking,it will show exception: Index was outside the bounds of the array the source code from websocket.cs line 306 : WsSendBuffer.Data[offset + i] = (byte)(buffer[i] ^ WsSendMask[i % 4]); i think the reason is, at line 257: long size = storeWSCloseStatus ? (buffer.Length + 2) : buffer.Length; then the buffer.Length < size