Skip to content

Stop connection retry on disallow #127

Description

@lvboudre

When a connection error occurred due to disallow we won't will be block for 60 sec window.

When this happen we should not retry connecting to a remote peer even if the number of attempt is less than the configured max_connection_attempt.

Once we detect this error, we should probably add a timer to know when the throttling window is done.

Lastly, when this happen it would beneficial to expose this problem through TxDropReason::DisallowedByPeer error variant.

Closes #CAS-126

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions