Skip to content

Write delay needed for writing to vRR console #56

@jeffbrl

Description

@jeffbrl

Based on my experimentation, the vRR console port can buffer about 115 characters when characters are rapidly sent to it. This limitation breaks the uploading of a minimal config. The <load-configuration> RPC will terminate prematurely.

Here is how I was able to fix it in tty_telnet.py:

    def rawwrite(self, content):
        """ write content as-is """
        for chunk in [content[i:i+100] for i in range(0, len(content), 100)]:
            self._tn.write(chunk)
            sleep(0.1)

Should this delay to be based on a command line flag? I'd be glad to submit a PR for this.

By the way, I have not tested vmx so I don't know if its console port has similar behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions