bashwork/pymodbus — pull request #23 by celso-providelo (2013-06-17 16:57:33+00:00)
Title: Fixing serial RTU server behavior 

This is a fix on RTUFramer to avoid misleading buffer RESET when processing unfinished requests.
The patch modifies isFrameReady(), introducing (reusing) a minimal package size threshold (8 bytes) check and then uses the corresponding PDU processor to calculate the entire request size it should wait for before processing.
In practical terms, it avoids the unreliable time-dependent wait (3.5 bytes) for the end-of-frame.