viganabd / nmodbus

Automatically exported from code.google.com/p/nmodbus
0 stars 0 forks source link

Stop reading if the slave does not produce a newline after 1000 characters #57

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When reading a line from the slave using the StreamResourceUtility NModbus can 
enter an infinity loop if the slave never sends a newline.

This patch throws an exception if no newline is sent after 1000 characters is 
read.

Original issue reported on code.google.com by rasmus.toftdahl.olesen on 2 Mar 2011 at 10:44

Attachments: