Module audit

Module audit 

Source
Expand description

Audit

When auditing is enabled, every deserialized Packet or Command is immediately re-serialized, and the results compared byte-by-byte. Any difference is a fatal error.

This is useful during development, to verify that new ser/deser methods are correct.

But it should not be enabled normally, because a malformed packet from a broken/modified client will cause a crash.

Functionsยง

audit_command
audit_on