nanoMODBUS
nanoMODBUS copied to clipboard
Flush TCP socket on exception
Not all bytes may have been read from the TCP socket read buffer when the request processing is aborted by an exception.
- remember the frame length from the message header
- derease remaining length on every successful read
- after sending the exception flush any remaining bytes from the socket
Fixes #67