Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.Quic.Lifetime

Feature notes: Asynchronous QUIC server and HTTP/3 component

Classes, interfaces and records

classtQuicLifetime

Serialized policy with monotone caller microseconds, including zero. Start at the first timed connection operation. Only successfully processed authenticated packets call PacketReceived; only actual UDP transmission calls PacketSent or CloseSent. Repeated sends cannot postpone idle expiry indefinitely. Zero transport timeouts disable only that endpoint's offer.

Closing/draining retain a fixed three-PTO deadline from entry. Close responses require new inbound traffic and are rate limited; preview and failed sends do not spend the response. Draining never transmits. PTO is supplied by the current path's recovery controller, without clock reads. Arithmetic saturates rather than producing an early wrapped deadline.

constructor Create(aLocalIdleTimeoutMillis: UInt64 = 0); procedure SetPeerIdleTimeoutMillis(aValue: UInt64); procedure Start(aNowMicros: UInt64); procedure PacketReceived(aNowMicros: UInt64); procedure PacketSent(aNowMicros: UInt64; aAckEliciting: Boolean); procedure BeginClosing(aNowMicros, aPtoMicros: UInt64); procedure BeginDraining(aNowMicros, aPtoMicros: UInt64); function CloseDue(aNowMicros: UInt64): Boolean; procedure CloseSent(aNowMicros, aPtoMicros: UInt64); function Poll(aNowMicros, aPtoMicros: UInt64): tQuicLifetimeEvent; function NextTimeout(aNowMicros, aPtoMicros: UInt64; out aDeadline: UInt64): Boolean;
False explicitly returns deadline zero. This query does not advance the connection clock or consume a pending close response.
property State: tQuicLifetimeState read fState; property Started: Boolean read fStarted; property ClosePending: Boolean read fClosePending; property TerminalDeadline: UInt64 read fTerminalDeadline;

Types (enumerations, sets, aliases)

enumtQuicLifetimeState

  tQuicLifetimeState = (qlsOpen, qlsClosing, qlsDraining, qlsExpired);

enumtQuicLifetimeEvent

  tQuicLifetimeEvent = (qleNone, qleIdleExpired, qleTerminalExpired);