Skip to content

Block in Vat.Embargo until host unregisters all stream handlers #45

@lthibault

Description

@lthibault

Vat.Embargo is used to remove a capability from the vat. Callers should be able to know exactly when this operation succeeds, so that they can reason about access revocation. Unfortunately, libp2p's Host.RemoveStreamHandler is asynchronous, so it is often the case that Embargo returns before the stream handler is actually disabled.

Two approaches to investigate:

  • Is there a signal on event.Bus that we can wait for?
  • Is there a network.Notifiee hook that we can tap into?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions