Comments (9)
I have created a pull request (#37), which fixes this issue.
Or have a look here: https://github.com/TiltonJH/secs4net
from secs4net.
The list data items in SecsMessage are limited up to 255 elements. It may be a reason why the program did crash.
from secs4net.
I ran into this issue (or at least something similar) and was able to get a workaround. I was receiving a reply message that was very big (list of >55000). Problem was, the ReceiveBufferSize in the SecsGem class was too small. I am not a creator of the SW I am working on, so I cannot give code snippets.
But if you change the ReceiveBufferSize for the socket to accommodate your data on instantiation, it should continue to work.
from secs4net.
it should continue to work.
Thank you very much!
from secs4net.
kelvin,can you share how to start up EAP Host
from secs4net.
BinaryAssault, I meant there is a hardcoded limitation in secs4net.
It's just not possible to add to a message a list with more than 255 elements, because the library throws an exception.
private Item(IReadOnlyList<Item> items) { if (items.Count > byte.MaxValue) throw new ArgumentOutOfRangeException(nameof(items) + "." + nameof(items.Count), items.Count, @"List items length out of range, max length: 255"); ... }
But array item length isn't limited.
from secs4net.
Well the issue is in the type, where the 2 last Bits determine the size of the length value. Secs supports up to 3 Byte for length value. Secs4Net only ever uses 1 Byte.
The issue should mostly be within the Item class.
If no one else will fix this. I will. But not within the next month. I currently don't got the time.
from secs4net.
I have created a pull request (#37), which fixes this issue.
Or have a look here: https://github.com/TiltonJH/secs4net
Thanks!
from secs4net.
Thanks for @TiltonJH contribution. I'm happy to see the fork.
btw, welcome to taste v2
from secs4net.
Related Issues (20)
- Bit mask of 'Stream' field is wrong
- too many T3 HOT 2
- Turn On the eqp one more time HOT 1
- analysis first s1f13 incorrect,and then T6 outtime occured。[Net6] HOT 1
- registering COM
- Linq方式添加item错误 HOT 2
- Stream greater than 63 is a parsing error
- network error HOT 1
- State remains in Connected and not going into Selected
- Sometimes the message reading is incomplete. HOT 5
- Can't response message after reconnect,自動重連之後不會回復消息了 HOT 10
- SendAsync Not Sending In A Specific Case HOT 1
- WpfVisualizer running in environment .net framework 4.8, an error is reported
- Parsing packet error
- A suggestion for class SecsMessage
- How can I use Secs4Net to create a passive host EAP to connect to many equipments? HOT 2
- EQ cannot be connected after reopen host severial times while selected HOT 2
- S10F3 remote terminal message notification, Chinese garbled code issue
- Question
- Is it possible to support Linux ARMv7 32bits for doubles and floats HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from secs4net.