ozgun77

Results 5 comments of ozgun77

"任意客户端关闭后服务端尝试发送数据时抛出异常应合理,业务代理有责任处理这样的一场,也可以在发送之前检查一下连接状态。" I'm checking the session state before sending message, but until I send message session is closed I guess. Do you have any suggestions to overcome this?

By the way this is StackTraceString: at System.IO.Pipelines.ThrowHelper.ThrowInvalidOperationException_NoWritingAllowed()\n at System.IO.Pipelines.Pipe.GetSpan(Int32 sizeHint)\n at SuperSocket.WebSocket.WebSocketEncoder.EncodeSingleFragment(IBufferWriter`1 writer, Byte opCode, Int32 expectedHeadLength, ReadOnlySpan`1 text)\n at SuperSocket.WebSocket.WebSocketEncoder.Encode(IBufferWriter`1 writer, WebSocketPackage pack)\n at SuperSocket.Channel.PipeChannel`1.WritePackageWithEncoder[TPackage](IBufferWriter`1 writer, IPackageEncoder`1 packageEncoder,...

@kerryjiang SuperSocket.WebSocket.Server 2.0.0-beta.8. Sometimes these errors getting too much, 10-15k errors for a minute.

I think this code in PipeChannel might causing this exception: `await Out.Writer.CompleteAsync().ConfigureAwait(false);` I think pipe is being closed before send task completed.

I think that's an issue related to handshake process. Is there any chance you can make CloseWithoutHandshake method of WebSocketSession public? @kerryjiang Thank you.