ouroboros-network-framework-0.13.1.0: Ouroboros network framework
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ouroboros.Network.Server.RateLimiting

Contents

Description

Rage limiting of accepted connections

Synopsis

Documentation

data AcceptedConnectionsLimit Source #

Policy which governs how to limit the number of accepted connections.

Constructors

AcceptedConnectionsLimit 

Fields

runConnectionRateLimits ∷ (MonadSTM m, MonadDelay m) ⇒ Tracer m AcceptConnectionsPolicyTraceSTM m IntAcceptedConnectionsLimit → m () Source #

Get the number of current connections, make decision based on AcceptedConnectionsLimit and execute it.

Tracing

data AcceptConnectionsPolicyTrace Source #

Trace for the AcceptConnectionsLimit policy.