Skip to content

Figure out the right way to cancel in progress work #16

@clone1018

Description

@clone1018

A live stream can stop (for whatever reason) either from the Protocol / Input layer, or from the Control layer. This bi-directional cancellation is currently a mess, and there's some hacky code in place to make it work.

Reasons for Cancellation

  • Control
    • Service / Orchestrator failure (unexpected or expected)
    • Control shutdown
  • Protocol / Input
    • Specific disconnect request
    • Network io error

Options

It seems like context may be appropriate for this, however I don't have a ton of experience using it.

Alternatively, depending on the Control architecture, we could use callbacks -- though that's not very "go" like.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions