Take int account received data length to check flow control error