Skip to content

Replace RPC heartbeat by checking if stdin is opened #57

Open
@guillaumerose

Description

CRC always issues RPC calls sequentially (each method of machine.Client interface use it's own driver and they don't goroutines). That means we could potentially remove the server and just send json commands on stdin, and read stdout.

There is still one mechanism we need to deal with: the hearbeat. This feature was made in case of a driver a failure. If it hangs, it will kill itself.

We can do the same by checking the status of stdin. Once it is closed, the driver must exit.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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