SuperSocket
SuperSocket copied to clipboard
SuperSocket is a light weight, cross platform and extensible socket server application framework.
此代码: ``` private async Task KeepAccept(Socket listenSocket) { while (!_cancellationTokenSource.IsCancellationRequested) { try { var client = await listenSocket.AcceptAsync().ConfigureAwait(false); OnNewClientAccept(client); } catch (Exception e) { if (e is ObjectDisposedException || e...
``` private async Task KeepAccept(Socket listenSocket) { while (!_cancellationTokenSource.IsCancellationRequested) { try { var client = await listenSocket.AcceptAsync().ConfigureAwait(false); OnNewClientAccept(client); } catch (Exception e) { if (e is ObjectDisposedException || e is...
1.6版本看到有示例,2.0版本没有找到
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.GC.AllocateNewArray(IntPtr typeHandle, Int32 length, GC_ALLOC_FLAGS flags) at System.GC.g__AllocateNewUninitializedArray|66_0[T](Int32 length, Boolean pinned) at System.Buffers.TlsOverPerCoreLockedStacksArrayPool1.Rent(Int32 minimumLength) at System.IO.Pipelines.Pipe.RentMemory(BufferSegment segment, Int32 sizeHint) at System.IO.Pipelines.Pipe.AllocateWriteHeadSynchronized(Int32 sizeHint)...