Skip to content

Add API to get a callback when varlink connection goes away #226

@jonas2515

Description

@jonas2515

When the connection to the server or the client goes away, and we're in the middle of a method call, it would be nice to be notified of that somehow (and then eg. cancel your ongoing action in a varlink server).

Currently there's no way to be notified of that early, and instead after the method call, reading the socket will return EOF.

Maybe there could be a API to get a CancellationToken on the ZlinkConnection?

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