Skip to content

DKG protocol goroutines can leak if protocol stalls #233

@julienh-ssv

Description

@julienh-ssv

In PR #229 review, we noted a follow-up: goroutines in StartDKG / StartReshareDKG* wait on p.WaitEnd() and can block forever if the DKG protocol stalls (lost messages / deadlock).

This is not HTTP-handler blocking (already addressed via timeouts), but it is a resource leak under the same stall/DoS model.

Ideas to investigate:

  • Add a timeout around waiting for WaitEnd() and propagate an error to initiator.
  • Check whether the underlying kyber protocol supports cancellation/abort; if so, wire cancellation to instance lifetime.

Context: PR #229 (F-ssv-dkg-007).

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