Skip to main content

Module event_handler

Module event_handler 

Source
Expand description

Incoming event handling, from the first signature check to the timeline.

The service authorizes incoming PDUs, fetches the events they depend on, derives their state and appends them. Observability counters cover the local state build, the previous-event walk and the backoff verdicts. A per-room history keeps the previous-event walk passes for up to three days.

ModulesΒ§

acl_check πŸ”’
backoff πŸ”’
fetch_auth πŸ”’
fetch_prev πŸ”’
fetch_state πŸ”’
handle_incoming_pdu πŸ”’
handle_outlier_pdu πŸ”’
handle_prev_pdu πŸ”’
outlier_state πŸ”’
parse_incoming_pdu πŸ”’
policy_server πŸ”’
prev_walk πŸ”’
resolve_state πŸ”’
state_at_incoming πŸ”’
state_local_build πŸ”’
upgrade_outlier_pdu πŸ”’

StructsΒ§

BackoffMetrics
Snapshot of process-lifetime verdicts from the backoff store, per federation step.
Data πŸ”’
InFlightWalk
A gapped incoming event whose pass is in flight.
LocalBuildReport
Summary of one local build attempt, for the admin debug command.
PrevWalkMetrics
Snapshot of process-lifetime totals for incoming previous-event walks.
PrevWalkPass
One recorded pass.
PrevWalkRoom
Recorded prev walk totals for one room.
Service
Handles incoming events: authorization, fetching missing events, state resolution and upgrade into the timeline.
StateLocalMetrics
Immutable process-lifetime totals for production local state builds.
Verdicts
Verdict counts for one federation step.
Walk
The walking phase of a pass, entered when the backward fetch returns previous events.

EnumsΒ§

PolicyCheck
Outcome of an inbound policy-server signature check.
PrevWalkOutcome
How the pass of a gapped incoming event ended.

ConstantsΒ§

EVENT_FETCH_ATTEMPT_LIMIT πŸ”’

FunctionsΒ§

room_version_of πŸ”’
Extract a room’s version from the create event in a stripped-state list (as stored for an out-of-band invite or knock).

Type AliasesΒ§

RoomMutexMap πŸ”’