Skip to main content

record

Function record 

Source
pub fn record(req: &mut InjectionRequest)
Expand description

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.