ouroboros-network-framework-0.1.0.0
Safe HaskellNone
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, MonadTime m) ⇒ Tracer m AcceptConnectionsPolicyTrace → STM 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.