Skip to main content

Module sent_audit

Module sent_audit 

Source
Expand description

The sender’s half of a message’s trail: the sent line written where a message is handed to this srv. The receiving srv writes the line it writes today under the same message id (msg_id), and audit.query joins the two into one row. A message another srv handed over (a peer, another channel, the cloud) has no sent line here: its sender wrote it.

Constants§

SENT
event_kind of the line, and its outcome.

Functions§

record
Writes the sent line of req to the audit file, when it has one, after giving a request with no id the one it will be delivered under. Called from admit once the message is accepted: after the replay check (which treats a signed message with no id as one it cannot count, so it must see the request as it came) and the refusals of files and of an empty reply, and before a hold, so a held message is joined to its later delivery. Not kept in the in-memory ring: that serves the deliveries, and a message would take two places in it.