Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make monitorPeerConnection non-blocking #4067

Merged
merged 11 commits into from
Oct 14, 2022

Commits on Oct 11, 2022

  1. Configuration menu
    Copy the full SHA
    d12af74 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2022

  1. Configuration menu
    Copy the full SHA
    029da23 View commit details
    Browse the repository at this point in the history
  2. peer-state-actions: use updateUnlessCold

    There's no need to wake up the outbound-governor multiple times when the
    mini-protocols are terminating.
    
    Added comments.
    coot committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    42b7844 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    056a9ed View commit details
    Browse the repository at this point in the history
  4. exit-policy: derive semigroup via Max

    `ReconnectDelay` ought to use `max` as its semigroup rather than `+`.
    coot committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    e4b79bb View commit details
    Browse the repository at this point in the history
  5. exit-policy: derive Fractional instance for ReconnectDelay

    This allows to use fractional literals without wrapping them in
    `ReconnectDelay` constructor.
    coot committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    e7ad23c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    af839ad View commit details
    Browse the repository at this point in the history
  7. peer-selection: refactor monitoring connections

    Instead of relaying on `policyErrorDelay` we can relay on the reconnect
    delay computed by `monitorPeerConnection`.
    coot committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    d1a61a4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    55dd64f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    332c303 View commit details
    Browse the repository at this point in the history
  10. peer-selection: throw an exception when monitorPeerSelection blocks

    This will cause the `peerSelectionGovernor` to fail and will stop the
    diffusion layer.  This is better than silently skipping update of the
    state due to an asynchronous demotion.
    coot committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    1250f33 View commit details
    Browse the repository at this point in the history