mkjeff / secs4net

SECS-II/HSMS-SS/GEM implementation on .NET
https://mkjeff.github.io/secs4net/
MIT License
443 stars 195 forks source link

network error #80

Closed jiayueshe closed 10 months ago

jiayueshe commented 1 year ago

Describe the bug when we use wifi in fab, network is not very good; so ,there is same mistake happen; and make hsms lose , can't reconnect

To Reproduce [08:21:49 672] 日志记录:Connection loss, try to reconnect. [08:21:59 716] 日志记录:Unhandled exception occurred on PipeDecoder producer 在 System.ThrowHelper.ThrowArgumentOutOfRangeException() 在 System.IO.Pipelines.BufferSegment.set_End(Int32 value) 在 System.IO.Pipelines.Pipe.CommitUnsynchronized() 在 System.IO.Pipelines.Pipe.PrepareFlushUnsynchronized(CompletionData& completionData, ValueTask1& result, CancellationToken cancellationToken) 在 System.IO.Pipelines.Pipe.WriteAsync(ReadOnlyMemory1 source, CancellationToken cancellationToken) 在 System.IO.Pipelines.Pipe.DefaultPipeWriter.WriteAsync(ReadOnlyMemory`1 source, CancellationToken cancellationToken) 在 Secs4Net.HsmsConnection.d__63.MoveNext() [08:21:59 716] 日志记录:Connection loss, try to reconnect.

Desktop (please complete the following information):

wang9th commented 1 year ago
[08:21:59 716] 日志记录:Unhandled exception occurred on PipeDecoder producer 在 System.ThrowHelper.ThrowArgumentOutOfRangeException()

看起来是 参数错误 , 可以尝试调整 buffer size