Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodtTLSConnection.ArmDeadline

procedure ArmDeadline(aMillis: Cardinal);
Arms / disarms this connection's own deadline. Both are safe from ANY thread and take NO lock: the deadline is one interlocked field, so a re-arm on every byte received costs a single store, can never contend with the per-connection gate, and cannot invert a lock order against it. Nothing here starts a clock - a reaper (or an application) reads DeadlineExpired and calls RequestNudgeFor; the deadline is only the record of when. aMillis = 0 disarms, which is how a connection is taken out of a deadline's scope entirely.