ouroboros-network-framework
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) => Tracer m AcceptConnectionsPolicyTrace -> STM m Int -> AcceptedConnectionsLimit -> 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.